Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
left pad numbers
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.