From 417e9cb9971b440cb0e2bec8aa9072d0104104ab Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sun, 1 Aug 2021 08:25:44 +0300 Subject: [PATCH] Create log.js --- scripts/log.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/log.js diff --git a/scripts/log.js b/scripts/log.js new file mode 100644 index 0000000000..a4b580cc87 --- /dev/null +++ b/scripts/log.js @@ -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