30 lines
416 B
Plaintext
30 lines
416 B
Plaintext
'use strict';
|
|
|
|
function red(str) {
|
|
return '\u001b[31m' + str + '\u001b[0m';
|
|
}
|
|
|
|
function green(str) {
|
|
return '\u001b[32m' + str + '\u001b[0m';
|
|
}
|
|
|
|
function yellow(str) {
|
|
return '\u001b[33m' + str + '\u001b[0m';
|
|
}
|
|
|
|
function cyan(str) {
|
|
return '\u001b[36m' + str + '\u001b[0m';
|
|
}
|
|
|
|
function grey(str) {
|
|
return '\u001b[90m' + str + '\u001b[0m';
|
|
}
|
|
|
|
module.exports = {
|
|
red,
|
|
green,
|
|
yellow,
|
|
cyan,
|
|
grey,
|
|
};
|