vadimdemedes / equal-length

Extend lines to equal length

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

equal-length Build Status

Extend lines to equal length

Install

$ npm install --save equal-length

Usage

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

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

About

Extend lines to equal length

License:MIT License


Languages

Language:JavaScript 100.0%