{"name":"trim-repeated","version":"1.0.0","description":"Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/trim-repeated"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["condense","collapse","compact","consecutive","repeated","string","str","trim","remove","strip","character","char"],"dependencies":{"escape-string-regexp":"^1.0.2"},"devDependencies":{"ava":"0.0.4"},"gitHead":"df1e5af5f88117f1c9f1624aeb083d014ceef308","bugs":{"url":"https://github.com/sindresorhus/trim-repeated/issues"},"homepage":"https://github.com/sindresorhus/trim-repeated","_id":"trim-repeated@1.0.0","_shasum":"e3646a2ea4e891312bf7eace6cfb05380bc01c21","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"e3646a2ea4e891312bf7eace6cfb05380bc01c21","tarball":"http://registry-npm.ywwl.com/trim-repeated/download/trim-repeated-1.0.0.tgz","integrity":"sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFNiVHJf1yeX+XIfksNNRbXJqaQh2Mm0xQfR8adCkgH5AiAIt3orq4Ukkq0Cqg4mXEBFzkCE628edqb2ftVdyyCp3A=="}],"size":1700,"noattachment":false,"key":"/trim-repeated/-/trim-repeated-1.0.0.tgz"},"directories":{},"readme":"# trim-repeated\n\n> Trim a consecutively repeated substring: `foo--bar---baz` → `foo-bar-baz`\n\n## Install\n\n```\n$ npm install trim-repeated\n```\n\n## Usage\n\n```js\nimport trimRepeated from 'trim-repeated';\n\ntrimRepeated('foo--bar---baz', '-');\n//=> 'foo-bar-baz'\n\ntrimRepeated('foo@#@#baz', '@#');\n//=> 'foo@#baz'\n```\n\n### trimRepeated(input, target)\n\n#### input\n\n*Required*\\\nType: `string`\n\n#### target\n\n*Required*\\\nType: `string`\n\nSubstring to trim.\n\n## Related\n\n- [`condense-whitespace`](https://github.com/sindresorhus/condense-whitespace) - Remove leading, trailing and repeated whitespace from a string\n","publish_time":1421166463676,"_cnpm_publish_time":1421166463676,"dist-tags":{"latest":"2.0.0"}}