Neodymium Plated Magnet

    @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

    Keywords

    none

    Install

    npm i @ligrecito/multilinejs

    DownloadsWeekly Downloads

    3

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    4.87 kB

    Total Files

    5

    Last publish

    Collaborators

    • ligrecito