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

https://github.com/thangngoc89/left-pad

High performance left-pad using binary operator
https://github.com/thangngoc89/left-pad

Last synced: 3 months ago
JSON representation

High performance left-pad using binary operator

Awesome Lists containing this project

README

        

## left-pad

String left pad.

## Install

```bash
$ npm install thangngoc89/left-pad
```

## Usage

```js
leftpad = require('left-pad')

leftpad('foo', 5)
// => " foo"

leftpad('foobar', 6)
// => "foobar"

leftpad(1, 2, 0)
// => "01"
```