aboutsummaryrefslogtreecommitdiff
path: root/node_modules/trim-repeated/readme.md
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-24 14:41:48 +0200
committerMinteck <nekostarfan@gmail.com>2021-08-24 14:41:48 +0200
commitd25e11bee6ca5ca523884da132d18e1400e077b9 (patch)
tree8af39fde19f7ed640a60fb397c7edd647dff1c4c /node_modules/trim-repeated/readme.md
downloadkartik-iridium-d25e11bee6ca5ca523884da132d18e1400e077b9.tar.gz
kartik-iridium-d25e11bee6ca5ca523884da132d18e1400e077b9.tar.bz2
kartik-iridium-d25e11bee6ca5ca523884da132d18e1400e077b9.zip
Initial commit
Diffstat (limited to 'node_modules/trim-repeated/readme.md')
-rw-r--r--node_modules/trim-repeated/readme.md47
1 files changed, 47 insertions, 0 deletions
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)