吕君喜 406d880ac6 first | 3 роки тому | |
---|---|---|
.. | ||
LICENSE | 3 роки тому | |
README.md | 3 роки тому | |
index.js | 3 роки тому | |
package.json | 3 роки тому |
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.