replace-comments-x

WebJar for replace-comments-x

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

replace-comments-x
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

replace-comments-x
WebJar for replace-comments-x
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/Xotic750/replace-comments-x

Скачать replace-comments-x

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/replace-comments-x/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>replace-comments-x</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/replace-comments-x/
implementation 'org.webjars.npm:replace-comments-x:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/replace-comments-x/
implementation ("org.webjars.npm:replace-comments-x:2.0.0")
'org.webjars.npm:replace-comments-x:jar:2.0.0'
<dependency org="org.webjars.npm" name="replace-comments-x" rev="2.0.0">
  <artifact name="replace-comments-x" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='replace-comments-x', version='2.0.0')
)
libraryDependencies += "org.webjars.npm" % "replace-comments-x" % "2.0.0"
[org.webjars.npm/replace-comments-x "2.0.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : require-coercible-to-string-x jar [1.0.0,2)
org.webjars.npm : to-string-x jar [1.4.2,2)

Модули Проекта

Данный проект не имеет модулей.

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

replace-comments-x

Replace the comments in a string.

module.exports(string, [replacement])string

This method replaces comments in a string.

Kind: Exported function
Returns: string - The new string with the comments replaced.
Throws:

  • TypeError If string is null or undefined or not coercible.
  • TypeError If replacement is not coercible.
Param Type Description
string string The string to be stripped.
[replacement] string The string to be used as a replacement.

Example

import replaceComments from 'replace-comments-x';

console.log(replaceComments('test; /* test */', '')); // 'test;'
console.log(replaceComments('test; // test', '')); // 'test;'

Версии библиотеки

Версия
2.0.0