1 var colors = require('../safe');
3 console.log(colors.yellow('First some yellow text'));
5 console.log(colors.yellow.underline('Underline that text'));
7 console.log(colors.red.bold('Make it bold and red'));
9 console.log(colors.rainbow('Double Raindows All Day Long'));
11 console.log(colors.trap('Drop the bass'));
13 console.log(colors.rainbow(colors.trap('DROP THE RAINBOW BASS')));
15 // styles not widely supported
16 console.log(colors.bold.italic.underline.red('Chains are also cool.'));
18 // styles not widely supported
19 console.log(colors.green('So ') + colors.underline('are') + ' '
20 + colors.inverse('inverse') + colors.yellow.bold(' styles! '));
22 console.log(colors.zebra('Zebras are so fun!'));
24 console.log('This is ' + colors.strikethrough('not') + ' fun.');
27 console.log(colors.black.bgWhite('Background color attack!'));
28 console.log(colors.random('Use random styles on everything!'));
29 console.log(colors.america('America, Heck Yeah!'));
31 console.log(colors.brightCyan('Blindingly ') + colors.brightRed('bright? ') + colors.brightYellow('Why ') + colors.brightGreen('not?!'));
33 console.log('Setting themes is useful');
38 // console.log('Generic logging theme as JSON'.green.bold.underline);
39 // Load theme with JSON literal
54 console.log(colors.error('this is an error'));
56 // outputs yellow text
57 console.log(colors.warn('this is a warning'));
60 console.log(colors.input('this is an input'));
63 // console.log('Generic logging theme as file'.green.bold.underline);
65 // Load a theme from file
66 colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));
69 console.log(colors.error('this is an error'));
71 // outputs yellow text
72 console.log(colors.warn('this is a warning'));
75 console.log(colors.input('this is an input'));
77 // console.log(colors.zalgo("Don't summon him"))