console: refactor the console module to be reusable
authorNathan Rajlich <nathan@tootallnate.net>
Fri, 24 Aug 2012 20:12:30 +0000 (13:12 -0700)
committerNathan Rajlich <nathan@tootallnate.net>
Fri, 24 Aug 2012 21:31:32 +0000 (14:31 -0700)
commit025f53c306d91968b292051404aebb8bf2adb458
tree645798ddf428ff62f49d8705845d81f8cc786807
parentc4fa77a5ecd801883e6c9a801c4cd2a903ff134b
console: refactor the console module to be reusable

So that multiple instances can be created pointing
to different writable streams.

This is needed for #3876.
lib/console.js
test/simple/test-console-instance.js [new file with mode: 0644]