From 703e03aba33f234712206769f57717ba7d92d23d Mon Sep 17 00:00:00 2001 From: LinuxWizard42 Date: Wed, 12 Oct 2022 22:54:37 +0300 Subject: Added export_allowed file to make repository visible in cgit --- node_modules/trim-repeated/readme.md | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 node_modules/trim-repeated/readme.md (limited to 'node_modules/trim-repeated/readme.md') diff --git a/node_modules/trim-repeated/readme.md b/node_modules/trim-repeated/readme.md new file mode 100644 index 0000000..7f5a7a7 --- /dev/null +++ b/node_modules/trim-repeated/readme.md @@ -0,0 +1,47 @@ +# trim-repeated [![Build Status](https://travis-ci.org/sindresorhus/trim-repeated.svg?branch=master)](https://travis-ci.org/sindresorhus/trim-repeated) + +> Trim a consecutively repeated substring: `foo--bar---baz` → `foo-bar-baz` + + +## Install + +``` +$ npm install --save trim-repeated +``` + + +## Usage + +```js +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 + +- [`condense-whitespace`](https://github.com/sindresorhus/condense-whitespace) - Remove leading, trailing and repeated whitespace from a string + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) -- cgit v1.2.3-86-g962b