Nanoseconds Produce Minutes

    @absolunet/terminal-pad

    1.0.0 • Public • Published

    @absolunet/terminal-pad

    npm npm dependencies npms Travis CI Code style ESLint

    Terminal-friendly string pad

    Install

    $ npm install @absolunet/terminal-pad

    Usage

    const chalk = require('chalk');
    const pad   = require('@absolunet/terminal-pad');
    
    pad(chalk.bgRed('📛 Error'), 20);
    //=> '📛 Error             '

    API

    pad(text, length)

    Returns a String with padded text

    text

    Required
    Type: String

    The text to pad.

    length

    Required
    Type: Number

    The total length of outputted string.

    License

    MIT © Absolunet

    Keywords

    Install

    npm i @absolunet/terminal-pad

    DownloadsWeekly Downloads

    106

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.47 kB

    Total Files

    4

    Last publish

    Collaborators

    • mboutry
    • absobot
    • pleminh
    • jblandry
    • fpoulin09
    • absolunet-admin