tree: 89ac8e28addf14f52301060cb4af8c9ac9f1fc71 [path history] [tgz]
  1. index.js
  2. LICENSE
  3. package.json
  4. README.md
src/third_party/devtools/node_modules/browser-stdout/README.md

wat?

process.stdout in your browser.

wai?

iono. cuz hakz.

hau?

var BrowserStdout = require('browser-stdout')

myStream.pipe(BrowserStdout())

monkey

You can monkey-patch process.stdout for your dependency graph like this:

process.stdout = require('browser-stdout')()
var coolTool = require('module-that-uses-stdout-somewhere-in-its-depths')

opts

opts are passed directly to stream.Writable. additionally, a label arg can be used to label console output.

BrowserStdout({
  objectMode: true,
  label: 'dataz',
})

ur doin it rong

i accept pr's.