1 module.exports = inspectorLog;
4 const nullStream = new (require('stream').Writable)();
5 nullStream._write = () => {};
8 * Outputs a `console.log()` to the Node.js Inspector console *only*.
10 function inspectorLog() {
11 const stdout = console._stdout;
12 console._stdout = nullStream;
13 console.log.apply(console, arguments);
14 console._stdout = stdout;