@ligrecito/multilinejs

1.0.1 • Public • Published

TL;DR

Simply it will break a string into lines.

Example

const { generateMultiline }  = require('@ligrecito/multilinejs');

// Parameters:
const lines = generateMultiline('This is a very long description', 3, 16, '...');

// lines[0] = 'This is a very'
// lines[1] = 'long description'

Parameters

  • input: String to break into lines
  • maxNumberOfLines:
  • maxLenghtOfEachLine
  • ending: How to add as a suffix to lines too long

Readme

Keywords

none

Package Sidebar

Install

npm i @ligrecito/multilinejs

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

4.87 kB

Total Files

5

Last publish

Collaborators

  • ligrecito