jsmp-infrastucture-npm-updater
v1.0.1
Published
npm-updater is a package for working with strings and arrays.
Downloads
1
Readme
npm-updater
npm-updater is a package for working with strings and arrays.
It contains two methods:
- updateArray;
- transformString;
Installation
Prerequisites: Node.js (>=6.14), npm version 3+.
There are two ways to install npm-updater: globally and locally.
Local Installation
$ npm install jsmp-infrastucture-npm-updater --save-dev
Global Installation
npm install -g jsmp-infrastucture-npm-updater
Usage
After that, you can import necessary functions and use them:
//const updater = require('jsmp-infrastucture-npm-updater');
import { updateArray, transformString } from 'jsmp-infrastucture-npm-updater';
//updater.updateArray([1, 2, 3], 4, 5); //[1, 2, 3, 4, 5]
updateArray([1, 2, 3], 4, 5); //[1, 2, 3, 4, 5]