Package Exports
- npad
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (npad) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
npad
left and right padding for NodeJS
v1.0.0
NodeJS >= 4
Instalation
npm i --save npad
Usage
var pad = require('npad')
console.log(pad.left('foo', 5)) // print ` foo`
console.log(pad.right('bar', 10, '.')) // print `bar.......`
Development
this projet has been set up with a precommit that forces you to follow a code style, no jshint issues and 100% of code coverage before commit
to run test
npm test
to run jshint
npm run lint
to run code style
npm run style
to run code coverage
npm run coverage
to open the code coverage report
npm run coverage:open