Miss any of our Open RFC calls?Watch the recordings here! »

replace-string-at-position

1.0.4 • Public • Published

replace-string-at-position

npm package

Build Status Dependency Status Coverage Status Known Vulnerabilities XO code style Gitter

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

Install

npm i replace-string-at-position

DownloadsWeekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • avatar