1 var colors = require('../lib/index');
3 console.log("First some yellow text".yellow);
5 console.log("Underline that text".yellow.underline);
7 console.log("Make it bold and red".red.bold);
9 console.log(("Double Raindows All Day Long").rainbow)
11 console.log("Drop the bass".trap)
13 console.log("DROP THE RAINBOW BASS".trap.rainbow)
16 console.log('Chains are also cool.'.bold.italic.underline.red); // styles not widely supported
18 console.log('So '.green + 'are'.underline + ' ' + 'inverse'.inverse + ' styles! '.yellow.bold); // styles not widely supported
19 console.log("Zebras are so fun!".zebra);
22 // Remark: .strikethrough may not work with Mac OS Terminal App
24 console.log("This is " + "not".strikethrough + " fun.");
26 console.log('Background color attack!'.black.bgWhite)
27 console.log('Use random styles on everything!'.random)
28 console.log('America, Heck Yeah!'.america)
31 console.log('Setting themes is useful')
36 console.log('Generic logging theme as JSON'.green.bold.underline);
37 // Load theme with JSON literal
52 console.log("this is an error".error);
54 // outputs yellow text
55 console.log("this is a warning".warn);
58 console.log("this is an input".input);
60 console.log('Generic logging theme as file'.green.bold.underline);
62 // Load a theme from file
63 colors.setTheme(__dirname + '/../themes/generic-logging.js');
66 console.log("this is an error".error);
68 // outputs yellow text
69 console.log("this is a warning".warn);
72 console.log("this is an input".input);
74 //console.log("Don't summon".zalgo)