jsmp-infra-mykashka
v1.0.7
Published
Cpd 2021 test package
Downloads
9
Readme
This is the npm package for training purposes.
Features
Update array with active users, add to the object country field.
Make direct sentences more polite. Change MUST to any provide verb or CAN by default.
Installation
npm i jsmp-infra-bahinska-package
Scripts
- npm run compile (compile - script(s) that transpiles original source and tests files to ES5, and put compiled files in dist/js directory);
- npm run clean (emoves all files and folders that are created during by compile scripts);
- npm run test (runs transpiled test files);
Usage
const {updateString, updateArray} = require('jsmp-infra-bahinska-package');
updateString('Mary must', 'can'); // returns 'Mary can'
updateArray([{
surname: 'Geovani',
name: 'Mary',
age: 12,
active: true,
},
{
surname: 'Ivan',
name: 'Carry',
age: 11,
active: false,
}], 'Italy');
// returns [{
surname: 'Geovani',
name: 'Mary',
age: 12,
active: true,
country: 'Italy'}]