File: README.md

package info (click to toggle)
node-browser-stdout 1.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 72 kB
  • sloc: makefile: 2
file content (40 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
### wat?

`process.stdout` in your browser.

### wai?

iono. cuz hakz.

### hau?

```js
var BrowserStdout = require('browser-stdout')

myStream.pipe(BrowserStdout())
```

### monkey

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

opts are passed directly to `stream.Writable`.
additionally, a label arg can be used to label console output.

```js
BrowserStdout({
  objectMode: true,
  label: 'dataz',
})
```

### ur doin it rong

i accept pr's.