@ligrecito/multilinejs
v1.0.1
Published
Simply it will break a string into lines.
Downloads
4
Readme
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