Ninjas Practicing Multidimensionality

    @gridonic/log

    1.0.0 • Public • Published


    Consistent console logging for our CLI apps.


    Installation

    Very simple. Just run $ npm install @gridonic/log.


    How to use?

    Examples say more than a thousand words.

    const { info, error, success, warning } = require('@gridonic/log');
    
    try {
        info('Starting my app…');
        
        if (specialCondition() === true) {
            warning('Please pay attention to this.');
        }
        
        // Make sure success message has enough blank space before it
        success('Everything done.', 0, 3);
    } catch(myBadError) {
        error(myBadError);
    }

    You may also use the second (newlineAfter) and third (newlineBefore) parameter for adding newlines.

    gridonic.chgridonic.github.io@gridonic

    Install

    npm i @gridonic/log

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.68 kB

    Total Files

    9

    Last publish

    Collaborators

    • axooh
    • dschenk
    • jfierz