1.0.0 • Published 7 years ago
replace-at v1.0.0
Replace At
A much needed JavaScript function when dealing with strings
Install
$ npm install replace-at
Usage
const replaceAt = require('replace-at');
replaceAt('Hello $, how are you?', 6, 'world');
// Hello world, how are you?
replaceAt('Replace this inline', 6, 'ing this inline replaces multiple characters', {inline: true});
// Replacing this inline replaces multiple characters
Examples
See test.js for examples
License
1.0.0
7 years ago