Nathan Rajlich
48114629b4
node: fix typo and optimize useColors() logic
2014-06-01 14:21:26 -07:00
Nathan Rajlich
e0b6b07cb6
node: make DEBUG_COLORS able to disable coloring
...
Fixes #59 .
2014-06-01 11:09:55 -07:00
Nathan Rajlich
e502a7df95
*: export the colors array
...
DRYs up some of the logic in the process,
since the "core" color handling code gets
moved to `debug.js`
Closes #20 .
2014-06-01 10:32:30 -07:00
Nathan Rajlich
9e4e0fff23
node: reset terminal color for the debug content
...
This is a controversial change as well, but it seems to be
wanted by the community, and usability is more important to me
than looks, so why not…
Closes #47 .
Closes #52 .
Closes #87 .
2014-05-31 19:21:53 -07:00
Nathan Rajlich
32b0bf41eb
browser, node: rename c to color
...
More clear for the user to override it this way.
See: #95
2014-05-31 19:18:41 -07:00
Nathan Rajlich
b38496e03b
node: map "%o" to util.inspect()
2014-05-31 14:24:59 -07:00
Nathan Rajlich
007123fa11
node: fix colors in strict mode
...
Before the `fmt` variable was not being updated.
Closes #70 .
2014-05-31 12:22:05 -07:00
Nathan Rajlich
f3eb1a5396
node: don't default save() to an empty string
2014-05-30 22:13:46 -07:00
Nathan Rajlich
fbbf2ca884
node: , -> .
2014-05-30 00:18:17 -07:00
Nathan Rajlich
0c6d452292
node: apply log to console
...
Not necessary, just seems more "proper"
2014-05-30 00:15:29 -07:00
Nathan Rajlich
2cffe24185
rewrite: abstract common logic for Node & browsers
2014-05-30 00:10:10 -07:00