trim-repeated

WebJar for trim-repeated

Лицензия

Лицензия

MIT
Группа

Группа

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

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

trim-repeated
Последняя версия

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

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

trim-repeated
WebJar for trim-repeated
Ссылка на сайт

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

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

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

https://github.com/sindresorhus/trim-repeated

Скачать trim-repeated

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : escape-string-regexp jar [1.0.2,2)

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

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

trim-repeated Build Status

Trim a consecutively repeated substring: foo--bar---bazfoo-bar-baz

Install

$ npm install --save trim-repeated

Usage

var trimRepeated = require('trim-repeated');

trimRepeated('foo--bar---baz', '-');
//=> 'foo-bar-baz'

trimRepeated('foo@#@#baz', '@#');
//=> 'foo@#baz'

trimRepeated(input, target)

input

Required
Type: string

target

Required
Type: string

Substring to trim.

Related

License

MIT © Sindre Sorhus

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

Версия
1.0.0