aboutsummaryrefslogtreecommitdiff
path: root/node_modules/equal-length/readme.md
blob: df7a82af87f9e6b9e2b0a898ad79cf2e4f06aa4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# equal-length [![Build Status](https://travis-ci.org/vadimdemedes/equal-length.svg?branch=master)](https://travis-ci.org/vadimdemedes/equal-length)

> Extend lines to equal length


## Install

```
$ npm install --save equal-length
```


## Usage

*.join() and .split() are used only to demo line length*

```js
const equalLength = require('equal-length');

equalLength([
	'abc',
	'a'
].join('\n')).split('\n');
// => [
// 'abc',
// 'a  '
// ]
```


## API

### equalLength(input)

#### input

Type: `string`

Multiline string.


## License

MIT © [Vadim Demedes](https://github.com/vadimdemedes)