Skip to content

Commit

Permalink
Merge pull request #17 from nopnop/master
Browse files Browse the repository at this point in the history
A way to force colored output
  • Loading branch information
tj committed Sep 1, 2012
2 parents fa2367f + 861fffa commit b64124c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/debug.js
@@ -1,4 +1,3 @@

/**
* Module dependencies.
*/
Expand Down Expand Up @@ -129,7 +128,7 @@ function debug(name) {

colored.enabled = plain.enabled = true;

return isatty
return isatty || process.env.DEBUG_COLORS
? colored
: plain;
}

0 comments on commit b64124c

Please sign in to comment.