JSPM

equal-length

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 64333
  • Score
    100M100P100Q203172F
  • License MIT

Extend lines to equal length

Package Exports

  • equal-length

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (equal-length) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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