blob: 71120719ab541f17c41d110d2b5a101f3ac2e1c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
let new_console = {
...console
}
let orig_console = console;
new_console.ok = (...args) => {
orig_console.log('\x1b[92m%s\x1b[0m', ...args)
}
new_console.misc = (...args) => {
orig_console.warn('\x1b[90m%s\x1b[0m', ...args)
}
new_console.info = (...args) => {
orig_console.warn('\x1b[94m%s\x1b[0m', ...args)
}
new_console.warn = (...args) => {
orig_console.warn('\x1b[93m%s\x1b[0m', ...args)
}
new_console.error = (...args) => {
orig_console.error('\x1b[91m%s\x1b[0m', ...args)
}
module.exports = new_console;
|