left pad numbers
$ gnpm install leftpad
Like the pad module, except I'll remember the argument order.
var leftpad = require('leftpad'); leftpad(5, 10); '0000000005'
Copyright 2013 - present © cnpmjs.org | Home |