splice-string alternatives and similar modules
Based on the "Text" category.
Alternatively, view splice-string alternatives based on common mentions on social networks and blogs.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of splice-string or a related project?
Remove or replace part of a string like
$ npm install --save splice-string
const spliceString = require('splice-string'); spliceString('unicorn', 3, 4, 'verse'); //=> 'universe' spliceString('❤️🐴🐴', 1, 1, '🦄'); //=> '❤️🦄🐴'
spliceString(input, index, count, [insert])
Index to start splicing.
Number of characters to remove.
String to insert in place of the removed substring.
MIT © Sindre Sorhus
*Note that all licence references and agreements mentioned in the splice-string README section above are relevant to that project's source code only.