Nanotechnology Promises Much
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability