zerofill

Zero-pad a number to the given size.

npm install zerofill
1 downloads in the last week
5 downloads in the last month

Zerofill

Zero-pad a number to the given size. Saves you repeating a whopping seven lines of code everywhere.

var zeroFill = require('zerofill');

zeroFill(1, 3); // '001'

License: MIT.

npm loves you