mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-18 08:13:39 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
14
node_modules/listr-verbose-renderer/lib/utils.js
generated
vendored
Normal file
14
node_modules/listr-verbose-renderer/lib/utils.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
const chalk = require('chalk');
|
||||
|
||||
const pad = n => n < 10 ? `0${n}` : n;
|
||||
|
||||
const currentTime = () => {
|
||||
const now = new Date();
|
||||
|
||||
return pad(now.getHours()) + ':' + pad(now.getMinutes()) + ':' + pad(now.getSeconds());
|
||||
};
|
||||
|
||||
exports.log = output => {
|
||||
console.log(chalk.dim(`[${currentTime()}]`) + ` ${output}`);
|
||||
};
|
||||
Reference in New Issue
Block a user