Create log.js

This commit is contained in:
Aleksandr Statciuk
2021-08-01 08:25:44 +03:00
parent 326923f87d
commit e708c62c1e

16
scripts/log.js Normal file
View File

@@ -0,0 +1,16 @@
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