Zero-pad a number to the given size.
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'
Learn best practices for Node.js with Visual Studio and Windows, including how and why to use npm packages and modules. Watch today »
how? learn more