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