Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-trim-repeated
Trim repeat for next.
https://github.com/afeiship/next-trim-repeated
next repeat repeated trim
Last synced: 11 days ago
JSON representation
Trim repeat for next.
- Host: GitHub
- URL: https://github.com/afeiship/next-trim-repeated
- Owner: afeiship
- License: mit
- Created: 2020-03-29T02:58:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T06:26:11.000Z (almost 4 years ago)
- Last Synced: 2024-10-06T22:23:47.655Z (about 1 month ago)
- Topics: next, repeat, repeated, trim
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-trim-repeated
> Trim repeat for next.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-trim-repeated
```## usage
```js
import '@jswork/next-trim-repeated';nx.trimRepeated('foo--bar---baz', '-');
//=> 'foo-bar-baz'nx.trimRepeated('foo@#@#baz', '@#');
//=> 'foo@#baz'
```## resources
- https://github.com/sindresorhus/trim-repeated## license
Code released under [the MIT license](https://github.com/afeiship/next-trim-repeated/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-trim-repeated
[version-url]: https://npmjs.org/package/@jswork/next-trim-repeated[license-image]: https://img.shields.io/npm/l/@jswork/next-trim-repeated
[license-url]: https://github.com/afeiship/next-trim-repeated/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-trim-repeated
[size-url]: https://github.com/afeiship/next-trim-repeated/blob/master/dist/next-trim-repeated.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-trim-repeated
[download-url]: https://www.npmjs.com/package/@jswork/next-trim-repeated