Simple lite string replacer when you only want to replace a substring at a particular position.
Installation is easiest through npm:
npm install replace-string-at-position --save
replace-string-at-position can be included as a reference.
var replaceStringAtPosition = require('./index.js');
var result = replaceStringAtPosition('222', '2', '3', 1);
//result => 232
$ 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
MIT © Mark Rogers