npm.js 516 B

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