From 81425598db4ca99a65f54a69ea58aa34f519bfe9 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 27 Sep 2011 16:13:59 +0200 Subject: [PATCH] Enable console colors on windows by default --- lib/repl.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/repl.js b/lib/repl.js index 23188e2..de38092 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -56,11 +56,7 @@ function hasOwnProperty(obj, prop) { var context; -exports.disableColors = true; -if (process.platform != 'win32') { - exports.disableColors = process.env.NODE_DISABLE_COLORS ? true : false; -} - +exports.disableColors = process.env.NODE_DISABLE_COLORS ? true : false; // hack for require.resolve("./relative") to work properly. module.filename = process.cwd() + '/repl'; -- 2.7.4