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.
-
Numeral.js
A javascript library for formatting and manipulating numbers. -
Underscore.string
Collection of string manipulation utilities. -
i18n-node
Simple translation module with dynamic JSON storage. -
camelcase
Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar. -
escape-string-regexp
Escape RegExp special characters. -
strip-indent
Strip leading whitespace from every line in a string. -
parse-columns
Parse text columns, like the output of Unix commands. -
hanging-indent
Format a string into a hanging-indented paragraph.
Scout APM - Leading-edge performance monitoring starting at $39/month
* 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?
README
splice-string 
Remove or replace part of a string like
Array#splice
Install
$ npm install --save splice-string
Usage
const spliceString = require('splice-string');
spliceString('unicorn', 3, 4, 'verse');
//=> 'universe'
spliceString('❤️🐴🐴', 1, 1, '🦄');
//=> '❤️🦄🐴'
API
spliceString(input, index, count, [insert])
input
Type: string
index
Type: number
Index to start splicing.
count
Type: number
Number of characters to remove.
insert
Type: string
String to insert in place of the removed substring.
License
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.