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.
iptv/scripts/log.js

17 lines
251 B
JavaScript

3 years ago
const log = {}
log.print = function (string) {
process.stdout.write(string)
}
log.start = function () {
this.print('Starting...\n')
console.time('\nDone in')
}
log.finish = function () {
console.timeEnd('\nDone in')
}
module.exports = log