Skip to content
left pad numbers
JavaScript
Latest commit 6f334bd Jun 18, 2013 @tmcw Repo and fix
Failed to load latest commit information.
README.md
index.js
package.json

README.md

leftpad

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

var leftpad = require('leftpad');

leftpad(5, 10);
'0000000005'
Something went wrong with that request. Please try again.