e8626fda941f74ae0961da78532b8334773ded38a359f9796596b125d3b6631060bf713cc93a6d557d352bed91821a990ff6b286638ae6a6fe704dbc48a632 423 B

12345678910111213141516171819202122
  1. 'use strict';
  2. const colors = {
  3. info(useColor, msg) {
  4. if (useColor) {
  5. // Make text blue and bold, so it *pops*
  6. return `\u001b[1m\u001b[34m${msg}\u001b[39m\u001b[22m`;
  7. }
  8. return msg;
  9. },
  10. error(useColor, msg) {
  11. if (useColor) {
  12. // Make text red and bold, so it *pops*
  13. return `\u001b[1m\u001b[31m${msg}\u001b[39m\u001b[22m`;
  14. }
  15. return msg;
  16. },
  17. };
  18. module.exports = colors;