replace-nth

Replace only specific occurrences of a string. e.g. if the string exists 10 times, you can replace, say, the 3rd and 8th occurrences only, etc. Returns a new string with nth specific matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.

MIT License

Downloads
61
Stars
4
Committers
1

No README available, please check again later.

Package Rankings
Top 26.55% on Npmjs.org
Related Projects