Create /helpers directory
This commit is contained in:
16
scripts/helpers/log.js
Normal file
16
scripts/helpers/log.js
Normal file
@ -0,0 +1,16 @@
|
||||
const log = {}
|
||||
|
||||
log.print = function (string) {
|
||||
process.stdout.write(string)
|
||||
}
|
||||
|
||||
log.start = function () {
|
||||
this.print('Starting...\n')
|
||||
console.time('Done in')
|
||||
}
|
||||
|
||||
log.finish = function () {
|
||||
console.timeEnd('Done in')
|
||||
}
|
||||
|
||||
module.exports = log
|
Reference in New Issue
Block a user