npad

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i npad

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • quim