吕君喜 406d880ac6 first | hace 3 años | |
---|---|---|
.. | ||
LICENSE | hace 3 años | |
README.md | hace 3 años | |
index.js | hace 3 años | |
package.json | hace 3 años |
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.