You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
443 B
JavaScript
23 lines
443 B
JavaScript
4 months ago
|
const print = {
|
||
|
log (info) {
|
||
|
console.log(info)
|
||
|
},
|
||
|
warn (info) {
|
||
|
console.log('\033[31;33m' + info + '\033[0m')
|
||
|
},
|
||
|
error (info) {
|
||
|
console.log('\033[31;40m' + info + '\033[0m')
|
||
|
},
|
||
|
tip (info) {
|
||
|
console.log('\033[40;32m' + info + '\033[0m')
|
||
|
},
|
||
|
success (info) {
|
||
|
console.log('\033[42;30m' + info + '\033[0m')
|
||
|
},
|
||
|
yellow (info) {
|
||
|
console.log('\033[31;33m' + info + '\033[0m')
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = print
|