cli.js 616 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * cli.js: Config that conform to commonly used CLI logging levels.
  3. *
  4. * (C) 2010 Charlie Robbins
  5. * MIT LICENCE
  6. */
  7. 'use strict';
  8. /**
  9. * Default levels for the CLI configuration.
  10. * @type {Object}
  11. */
  12. exports.levels = {
  13. error: 0,
  14. warn: 1,
  15. help: 2,
  16. data: 3,
  17. info: 4,
  18. debug: 5,
  19. prompt: 6,
  20. verbose: 7,
  21. input: 8,
  22. silly: 9
  23. };
  24. /**
  25. * Default colors for the CLI configuration.
  26. * @type {Object}
  27. */
  28. exports.colors = {
  29. error: 'red',
  30. warn: 'yellow',
  31. help: 'cyan',
  32. data: 'grey',
  33. info: 'green',
  34. debug: 'blue',
  35. prompt: 'grey',
  36. verbose: 'cyan',
  37. input: 'grey',
  38. silly: 'magenta'
  39. };