吕君喜 406d880ac6 first | %!s(int64=3) %!d(string=hai) anos | |
---|---|---|
.. | ||
LICENSE | %!s(int64=3) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
index.js | %!s(int64=3) %!d(string=hai) anos | |
package.json | %!s(int64=3) %!d(string=hai) anos |
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.