node package manager
Stop writing boring code. Discover, share, and reuse within your team. 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'