1.0.0 • Published 7 years ago

replace-at v1.0.0

Weekly downloads
13
License
MIT
Repository
github
Last release
7 years ago

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

MIT