diff --git a/packages/taskr/lib/cli/list.js b/packages/taskr/lib/cli/list.js index 0ec92bd9..efb0ac81 100644 --- a/packages/taskr/lib/cli/list.js +++ b/packages/taskr/lib/cli/list.js @@ -12,7 +12,7 @@ module.exports = function (tasks, bare) { bare = bare || false tasks = tasks || {} - const out = [`\n${fmt.text.dim("Available tasks")}`] + const out = [`\n${fmt.text().dim("Available tasks")}`] // parse tasks" descriptions, if any for (const k in tasks) { diff --git a/packages/taskr/lib/fmt.js b/packages/taskr/lib/fmt.js index 2377d370..3722ea94 100644 --- a/packages/taskr/lib/fmt.js +++ b/packages/taskr/lib/fmt.js @@ -1,13 +1,13 @@ 'use strict'; -const c = require('clorox'); +const k = require('kleur'); module.exports = { - complete: c.blue.bold, - title: c.bold.yellow, - error: c.bold.red, - path: c.underline.cyan, - warn: c.bold.magenta, - text: c.bold.white, - time: c.green + complete: k.blue().bold, + title: k.bold().yellow, + error: k.bold().red, + path: k.underline().cyan, + warn: k.bold().magenta, + text: k.bold().white, + time: k.green }; diff --git a/packages/taskr/lib/utils/logging.js b/packages/taskr/lib/utils/logging.js index ac60bec4..4d7a9352 100644 --- a/packages/taskr/lib/utils/logging.js +++ b/packages/taskr/lib/utils/logging.js @@ -6,7 +6,7 @@ * - use es2015 */ -const clorox = require('clorox'); +const kleur = require('kleur'); const homedir = require('os').homedir; const getTime = require('../fn').getTime; @@ -27,7 +27,7 @@ function stamp() { } // print the curr time. - process.stdout.write(clorox[this.color](getTime()) + ' '); + process.stdout.write(kleur[this.color](getTime()) + ' '); // apply arguments to `console` method console[this.method].apply(console, (this.custom ? [this.custom].concat(args) : args)); @@ -50,7 +50,7 @@ function error() { function alert() { if (process.env.VERBOSE) { stamp.apply({ - custom: clorox.yellow.bold("%s"), + custom: kleur.yellow().bold("%s"), color: 'yellow', method: 'log' }, arguments); diff --git a/packages/taskr/package.json b/packages/taskr/package.json index 9197be6c..d70b04e6 100644 --- a/packages/taskr/package.json +++ b/packages/taskr/package.json @@ -20,8 +20,8 @@ ], "dependencies": { "bluebird": "^3.5.0", - "clorox": "^1.0.1", "glob": "^7.1.2", + "kleur": "^4.1.3", "mk-dirs": "^1.0.0", "mri": "^1.1.0", "tinydate": "^1.0.0"