node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

leftpad

leftpad

CircleCI

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

var leftpad = require('leftpad');
 
leftpad(5, 10);
'0000000005'