mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 02:20:03 -04:00
Create /helpers directory
This commit is contained in:
parent
f164c948ed
commit
16f409856e
8 changed files with 42 additions and 336 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue