We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22081a9 commit 87d1c36Copy full SHA for 87d1c36
package.json
@@ -38,5 +38,8 @@
38
"files": [
39
"test/**/*.spec.js"
40
]
41
+ },
42
+ "dependencies": {
43
+ "chalk": "^1.1.3"
44
}
45
src/debug.js
@@ -1,6 +1,6 @@
1
'use strict';
2
3
-const stripAnsi = require('strip-ansi');
+
4
const chalk = require('chalk');
5
6
class Debugger {
@@ -57,7 +57,7 @@ class Debugger {
57
58
captureConsole (args, method, color) {
59
if (this.capturing) {
60
- this.capturedMessages.push(stripAnsi(args.join(' ').trim()));
+ this.capturedMessages.push(chalk.stripColor(args.join(' ').trim()));
61
} else {
62
method.apply(console, this.colorize(args, color));
63
0 commit comments