1.1.0 • Published 4 years ago

jsmp-infra-adiachenko v1.1.0

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

Installation

This package will be useful for you if you want to:

  1. add babel to your project
  2. find out how to delete files with script from package.json
  3. use assert for simple testing

Using npm:

$ npm init (fill in all fields)

$ npm i --save-dev jsmp-infra-adiachenko

Usage

const { updateString, updateArray } = require('jsmp-infra-adiachenko');

updateArray

Function which accepts array, other parameter(s) and returns updated array

Examples

updateArray(2,2,3, 4, 3, 5) === 4, 6

updateArray(2) === 'WRONG DATA'

updateArray() === 6

updateString

Function which accepts string, other parameter(s) and returns updated string

Examples

updateString('fred, > BARNEY, & --foo-bar--', 'escape') ==='fred, > BARNEY, & --foo-bar--'

updateString('barney, & pebbles') === 'barneyPebbles'

updateString('fred, > BARNEY, & --foo-bar--') === 'fredBarneyFooBar';

updateString() === 'textText'

1.1.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago