zero-fill
![javascript style guide](https://camo.githubusercontent.com/bde227e3207c7143032c0feb73889ffbda8eb1ef234b820b915ccaf74f9c66d7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64655f7374796c652d7374616e646172642d627269676874677265656e2e737667)
Zero-fill a number to the given size.
install
npm install zero-fill
usage
var zeroFill = require('zero-fill')
zeroFill(4, 1) // '0001'
zeroFill(10, 55) // '0000000055'
zeroFill(1, 1) // '1'
Partial application:
zeroFill(4)(1) // '0001'
Custom padding character:
zeroFill(4, 55, ' ') // ' 55'
zeroFill(4, 500, ' ') // ' 500'
license
MIT. Copyright (c) Feross Aboukhadijeh.