leftpad
Like the pad module, except I'll remember the argument order.
var leftpad = require('leftpad');
leftpad(5, 10);
'0000000005'
Use the built-in String.padStart function instead
left pad numbers
Like the pad module, except I'll remember the argument order.
var leftpad = require('leftpad');
leftpad(5, 10);
'0000000005'