1.0.0 • Published 8 years ago

npad v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

npad

left and right padding for NodeJS

Build StatusCode Coverage 100%ISC License

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