leftpad

left pad numbers

npm install leftpad
24 downloads in the last week
30 downloads in the last month

leftpad

Like the pad module, except I'll remember the argument order.

var leftpad = require('leftpad');

leftpad(5, 10);
'0000000005'
npm loves you