An open API service indexing awesome lists of open source software.

https://github.com/tmcw/leftpad

left pad numbers
https://github.com/tmcw/leftpad

Last synced: about 1 year ago
JSON representation

left pad numbers

Awesome Lists containing this project

README

          

## leftpad

[![CircleCI](https://circleci.com/gh/tmcw/leftpad/tree/master.svg?style=shield)](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'
```