https://github.com/tmcw/leftpad
left pad numbers
https://github.com/tmcw/leftpad
Last synced: about 1 year ago
JSON representation
left pad numbers
- Host: GitHub
- URL: https://github.com/tmcw/leftpad
- Owner: tmcw
- License: bsd-3-clause
- Created: 2013-06-19T01:25:54.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2017-05-03T03:19:19.000Z (about 9 years ago)
- Last Synced: 2025-04-11T19:05:02.771Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: license
Awesome Lists containing this project
README
## leftpad
[](https://circleci.com/gh/tmcw/leftpad/tree/master)
Like the [pad module](https://github.com/wdavidw/node-pad), except I'll remember
the argument order.
```js
var leftpad = require('leftpad');
leftpad(5, 10);
'0000000005'
```