replace-string-at-position
v1.0.4
Published
Simple lite string replacer when you only want to replace a substring at a particular position.
Downloads
5
Readme
replace-string-at-position
Simple lite string replacer when you only want to replace a substring at a particular position.
Installation
Installation is easiest through npm:
npm install replace-string-at-position --save
Usage
replace-string-at-position can be included as a reference.
var replaceStringAtPosition = require('./index.js');
var result = replaceStringAtPosition('222', '2', '3', 1);
//result => 232
CLI
$ npm install --global replace-string-at-position
Usage
$ replace-string-at-position <input> <source> <new> <position>
Example
$ replace-string-at-position 222 2 3 1
//=> 232
License
MIT © Mark Rogers