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 console.log(colors.bold.italic.underline.red('Chains are also cool.')); // styles not widely supported
18 console.log(colors.green('So ') + colors.underline('are') + ' ' + colors.inverse('inverse') + colors.yellow.bold(' styles! ')); // styles not widely supported
20 console.log(colors.zebra("Zebras are so fun!"));
22 console.log("This is " + colors.strikethrough("not") + " fun.");
25 console.log(colors.black.bgWhite('Background color attack!'));
26 console.log(colors.random('Use random styles on everything!'))
27 console.log(colors.america('America, Heck Yeah!'));
29 console.log('Setting themes is useful')
34 //console.log('Generic logging theme as JSON'.green.bold.underline);
35 // Load theme with JSON literal
50 console.log(colors.error("this is an error"));
52 // outputs yellow text
53 console.log(colors.warn("this is a warning"));
56 console.log(colors.input("this is an input"));
59 // console.log('Generic logging theme as file'.green.bold.underline);
61 // Load a theme from file
62 colors.setTheme(__dirname + '/../themes/generic-logging.js');
65 console.log(colors.error("this is an error"));
67 // outputs yellow text
68 console.log(colors.warn("this is a warning"));
71 console.log(colors.input("this is an input"));
73 // console.log(colors.zalgo("Don't summon him"))