Provides different development tools
$ npm i --save am-toolsCommon shared/used methods for manipulating String values.
// ES6 file
import { leftPad, capitalize, camelize } from 'am-tools/src/string';
console.log(leftPad('2')); // '02'
console.log(capitalize('hello')); // 'Hello'
console.log(camelize('hello-world')); // 'helloWorld'Runs tests with Jest, Babel and Instanbul.
Add into package.json:
{
"scripts": "NODE_ENV=testing node node_modules/am-tools/scripts/test.js --no-cache"
}Run:
$ npm run test