go-ethereum/node_modules/browser-stdout
2024-06-14 14:11:39 +03:00
..
index.js Ignition deploy 2024-06-14 14:11:39 +03:00
LICENSE Ignition deploy 2024-06-14 14:11:39 +03:00
package.json Ignition deploy 2024-06-14 14:11:39 +03:00
README.md Ignition deploy 2024-06-14 14:11:39 +03:00

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.