atlas-guide
Version:
Atlas is living style-guides & pattern library static site generator with extensive CSS monitoring and components info that could be used virtually with any scss/css project
20 lines (16 loc) • 492 B
JavaScript
;
function printMessage(type, message) {
const colorizeYellow = str => '\x1b[33m' + str + '\x1b[0m';
const colorizeRed = str => '\x1b[31m' + str + '\x1b[0m';
switch (type) {
case 'error': {
console.error(colorizeRed('Error: ') + 'Atlas: ' + message);
break;
}
case 'warn': {
console.warn(colorizeYellow('Warn: ') + 'Atlas: ' + message);
break;
}
}
}
module.exports = printMessage;