Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    typo-rgbpublic

    Typo-rgb

    The typo plugin to output full 8-bit colors (256 RGB colors) in command-line (CLI)!

    screenshot

    Installation

    npm install typo --save
    npm install typo-rgb --save

    Usage

    var typo = require('typo')({
        output: process.stdout
    });
     
    typo.plugin( require('typo-rgb') );

    Print colored text

    typo.log('{{rgb:#f0f purple}}'); // print a purple text 'purple'

    Print colored background

    typo.log('{{bg.rgb:#f0f purple}}'); // print 'purple' with the purple background

    Syntax

    typo.log(
        '{{rgb:#<rgb> <text>}}',
        [<substitution>], 
        [<callback>]
    );

    Available helpers

    rgb and bg.rgb

    Keywords

    none

    install

    npm i typo-rgb

    Downloadsweekly downloads

    3

    version

    0.1.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar