We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09a2b92 commit 3f18cebCopy full SHA for 3f18ceb
README.md
@@ -46,6 +46,8 @@ Help all ReScript Node.js apps and libraries to be built faster by reducing the
46
### Stream a file into stdout:
47
48
```rescript
49
+open NodeJs
50
+
51
Fs.createReadStream("/path")
52
->Stream.pipe(Process.(stdout(process)))
53
->Stream.onError(_ => Js.log("handleError"))
@@ -54,6 +56,8 @@ Fs.createReadStream("/path")
54
56
### Echo server:
55
57
58
59
60
61
Http.createServer((request, response) => {
62
request->Stream.onData(data => Js.log(data))
63
request->Stream.pipe(response)->ignore
0 commit comments