0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

Enable console colors on windows by default

This commit is contained in:
Bert Belder 2011-09-27 16:13:59 +02:00 committed by Ryan Dahl
parent 73fcd43b85
commit 81425598db

View File

@ -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';