吕君喜 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.