Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.9 KiB

  1. var colors = require('../safe');
  2. console.log(colors.yellow("First some yellow text"));
  3. console.log(colors.yellow.underline("Underline that text"));
  4. console.log(colors.red.bold("Make it bold and red"));
  5. console.log(colors.rainbow("Double Raindows All Day Long"))
  6. console.log(colors.trap("Drop the bass"))
  7. console.log(colors.rainbow(colors.trap("DROP THE RAINBOW BASS")));
  8. console.log(colors.bold.italic.underline.red('Chains are also cool.')); // styles not widely supported
  9. console.log(colors.green('So ') + colors.underline('are') + ' ' + colors.inverse('inverse') + colors.yellow.bold(' styles! ')); // styles not widely supported
  10. console.log(colors.zebra("Zebras are so fun!"));
  11. console.log("This is " + colors.strikethrough("not") + " fun.");
  12. console.log(colors.black.bgWhite('Background color attack!'));
  13. console.log(colors.random('Use random styles on everything!'))
  14. console.log(colors.america('America, Heck Yeah!'));
  15. console.log('Setting themes is useful')
  16. //
  17. // Custom themes
  18. //
  19. //console.log('Generic logging theme as JSON'.green.bold.underline);
  20. // Load theme with JSON literal
  21. colors.setTheme({
  22. silly: 'rainbow',
  23. input: 'grey',
  24. verbose: 'cyan',
  25. prompt: 'grey',
  26. info: 'green',
  27. data: 'grey',
  28. help: 'cyan',
  29. warn: 'yellow',
  30. debug: 'blue',
  31. error: 'red'
  32. });
  33. // outputs red text
  34. console.log(colors.error("this is an error"));
  35. // outputs yellow text
  36. console.log(colors.warn("this is a warning"));
  37. // outputs grey text
  38. console.log(colors.input("this is an input"));
  39. // console.log('Generic logging theme as file'.green.bold.underline);
  40. // Load a theme from file
  41. colors.setTheme(__dirname + '/../themes/generic-logging.js');
  42. // outputs red text
  43. console.log(colors.error("this is an error"));
  44. // outputs yellow text
  45. console.log(colors.warn("this is a warning"));
  46. // outputs grey text
  47. console.log(colors.input("this is an input"));
  48. // console.log(colors.zalgo("Don't summon him"))