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

https://github.com/azer/right-pad

string right pad
https://github.com/azer/right-pad

Last synced: 11 months ago
JSON representation

string right pad

Awesome Lists containing this project

README

          

## right-pad

String right pad

## Install

```bash
$ npm install right-pad
```

## Usage

```js
var rightpad = require('right-pad')

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

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

rightpad(1, 2, 0)
// => "10"
```