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.

73 lines
1.8 KiB

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