npm

Need private packages and team management tools?Check out npm Orgs. »

leading-zeros

1.0.1 • Public • Published

leading-zeros

Prepend integers with leading zeros.

Install

$ npm install --save leading-zeros

Usage

var leadingZeros = require('leading-zeros');
 
// arguments -> (number, amount of zero to be prepended)
leadingZeros(48, 5); 
// => 0000048
 
leadingZeros(-213, 2); 
// => -00213

License

MIT © Mert Kahyaoğlu 2015

install

npm i leading-zeros

Downloadsweekly downloads

7

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability