2019-07-03 18:34:58 +08:00
|
|
|
const print = {
|
|
|
|
log (info) {
|
|
|
|
console.log(info)
|
|
|
|
},
|
|
|
|
warn (info) {
|
2019-07-03 22:00:43 +08:00
|
|
|
console.log('\033[31;33m' + info + '\033[0m')
|
2019-07-03 18:34:58 +08:00
|
|
|
},
|
|
|
|
error (info) {
|
2019-07-03 22:00:43 +08:00
|
|
|
console.log('\033[31;40m' + info + '\033[0m')
|
2019-07-03 18:34:58 +08:00
|
|
|
},
|
|
|
|
tip (info) {
|
2019-07-03 22:00:43 +08:00
|
|
|
console.log('\033[40;32m' + info + '\033[0m')
|
2019-07-03 18:34:58 +08:00
|
|
|
},
|
|
|
|
success (info) {
|
2019-07-03 22:00:43 +08:00
|
|
|
console.log('\033[42;30m' + info + '\033[0m')
|
|
|
|
},
|
|
|
|
yellow (info) {
|
|
|
|
console.log('\033[31;33m' + info + '\033[0m')
|
2019-07-03 18:34:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-03 18:56:55 +08:00
|
|
|
module.exports = print
|