1.0.1 • Published 4 years ago

@ligrecito/multilinejs v1.0.1

Weekly downloads
3
License
ISC
Repository
-
Last release
4 years ago

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
1.0.1

4 years ago

1.0.0

4 years ago