npad
v1.0.0
Published
left and right padding for NodeJS
Downloads
3
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