Sha256: 949ae67ec1b655694f83dce57d47d9d77234f9e7d698616932a90e69c7afee91

Contents?: true

Size: 373 Bytes

Versions: 157

Compression:

Stored size: 373 Bytes

Contents

module.exports = inspectorLog;

// black hole
const nullStream = new (require('stream').Writable)();
nullStream._write = () => {};

/**
 * Outputs a `console.log()` to the Node.js Inspector console *only*.
 */
function inspectorLog() {
  const stdout = console._stdout;
  console._stdout = nullStream;
  console.log.apply(console, arguments);
  console._stdout = stdout;
}

Version data entries

157 entries across 124 versions & 20 rubygems

Version Path
ruby2js-4.0.3 lib/tasks/testrails/node_modules/debug/src/inspector-log.js
tang-0.2.0 spec/tang_app/node_modules/debug/src/inspector-log.js
tang-0.1.0 spec/tang_app/node_modules/debug/src/inspector-log.js
tang-0.0.9 spec/tang_app/node_modules/debug/src/inspector-log.js
enju_library-0.3.8 spec/dummy/node_modules/debug/src/inspector-log.js
ilog-0.4.1 node_modules/debug/src/inspector-log.js
ilog-0.4.1 node_modules/webpack-dev-server/node_modules/expand-brackets/node_modules/debug/src/inspector-log.js
ilog-0.4.0 node_modules/debug/src/inspector-log.js
ilog-0.4.0 node_modules/webpack-dev-server/node_modules/expand-brackets/node_modules/debug/src/inspector-log.js
ilog-0.3.3 node_modules/debug/src/inspector-log.js
ilog-0.3.3 node_modules/webpack-dev-server/node_modules/expand-brackets/node_modules/debug/src/inspector-log.js
proxy_chain_rb-0.1.2 lib/proxy_chain_rb/node_js/proxy-chain-server/node_modules/debug/src/inspector-log.js
jester-data-8.0.0 node_modules/debug/src/inspector-log.js
ezii-os-5.2.1 node_modules/debug/src/inspector-log.js
ezii-os-2.0.1 node_modules/debug/src/inspector-log.js
ezii-os-1.1.0 node_modules/debug/src/inspector-log.js
ezii-os-1.0.0 node_modules/debug/src/inspector-log.js
ezii-os-0.0.0.1.0 node_modules/debug/src/inspector-log.js
ezii-os-0.0.0.0.1 node_modules/debug/src/inspector-log.js
proxy_chain_rb-0.1.0 lib/proxy_chain_rb/node_js/proxy-chain-server/node_modules/debug/src/inspector-log.js