吕君喜 406d880ac6 first | 3 år sedan | |
---|---|---|
.. | ||
LICENSE | 3 år sedan | |
README.md | 3 år sedan | |
index.js | 3 år sedan | |
package.json | 3 år sedan |
process.stdout
in your browser.
iono. cuz hakz.
var BrowserStdout = require('browser-stdout')
myStream.pipe(BrowserStdout())
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 are passed directly to stream.Writable
.
additionally, a label arg can be used to label console output.
BrowserStdout({
objectMode: true,
label: 'dataz',
})
i accept pr's.