Skip to content

afeiship/next-trim-repeated

Repository files navigation

next-trim-repeated

Trim repeat for next.

version license size download

installation

npm install -S @jswork/next-trim-repeated

usage

import '@jswork/next-trim-repeated';

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

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

resources

license

Code released under the MIT license.