source: trip-planner-front/node_modules/webpack-dev-server/lib/utils/colors.js@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 423 bytes
Line 
1'use strict';
2
3const colors = {
4 info(useColor, msg) {
5 if (useColor) {
6 // Make text blue and bold, so it *pops*
7 return `\u001b[1m\u001b[34m${msg}\u001b[39m\u001b[22m`;
8 }
9
10 return msg;
11 },
12 error(useColor, msg) {
13 if (useColor) {
14 // Make text red and bold, so it *pops*
15 return `\u001b[1m\u001b[31m${msg}\u001b[39m\u001b[22m`;
16 }
17
18 return msg;
19 },
20};
21
22module.exports = colors;
Note: See TracBrowser for help on using the repository browser.