1.0.2 • Published 3 years ago
jsmp-infra-module6 v1.0.2
Homework 6
This homework is about introduction into web infrastructure. Introduction and package managers. Created by Anastasiia Shcherbina
Prerequisites
You need to install Node.js. npm is distributed with Node.js which means that when you download Node.js, you automatically get npm installed on your computer.
Installing
Install with npm:
$ npm install --save jsmp-infra-module6
Usage
const {
compactArray,
updateString
} = require('jsmp-infra-module6');
compactArray([1, 0, null], 8, 9); //returns [1, 8, 9]
updateString('anastasiia', 's', 'La'); //returns 'a,n,a,sLa,t,a,sLa,i,i,a'
Running the tests
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can run tests with the following command:
$ npm install && npm run compile && npm test
Or you can just execute $ npm install && npm run prepublish
command
Contributing
Pull requests and stars are always welcome.
Authors
- Anastasiia Shcherbina
License
This project is licensed under the ISC License.