typo-rgb

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

Typo-rgb

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

npm install typo --save
npm install typo-rgb --save
var typo = require('typo')({
    output: process.stdout
});
 
typo.plugin( require('typo-rgb') );
typo.log('{{rgb:#f0f purple}}'); // print a purple text 'purple' 
typo.log('{{bg.rgb:#f0f purple}}'); // print 'purple' with the purple background 
typo.log(
    '{{rgb:#<rgb> <text>}}',
    [<substitution>], 
    [<callback>]
);

rgb and bg.rgb