Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion console-trace.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var callsite = require('callsite')
, defaultColors = { log: '90', error: '91', warn: '93', info: '96', trace: '90' }

console.traceOptions = Object.create(null);
console.traceOptions.cwd = process.cwd() + '/';
console.traceOptions.cwd = process.cwd() + (process.platform == 'win32' ? '\\' : '/');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you use === instead of == ?

console.traceOptions.colors = true;

/**
Expand Down