jsmp-infra-task6-package
v1.0.2
Published
Introduction into web infrastructure. Introduction and package managers. [Udpated]
Downloads
9
Readme
Homework 6
Introduction into web infrastructure. Introduction and package managers
Description
This package provides such methods:
- chunkArray splits an array into parts of determined size;
- stringToCamelCase transforms string to the camelCase string
Installing
Install with npm:
$ npm install jsmp-infra-task6-package
Usage
const {
chunkArray,
stringToCamelCase
} = require('jsmp-infra-task6-package');
chunkArray([1, 2, 3, 4, 5], 2); // returns [[1, 2], [3, 4], [5]]
convertStringToCamelCase('__FOO_BAR__'); // returns 'fooBar'
Running the tests
You can run library with the following command to clean working directory, compile code from source and test this:
$ npm run build
Authors
- d.chumeiko
License
ISC