Skip to content

Commit 4cc5c5a

Browse files
authored
Merge pull request #24 from zth/update-readme
Add open NodeJs to readme examples
2 parents e16692c + ea55d7e commit 4cc5c5a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,18 @@ Help all ReScript Node.js apps and libraries to be built faster by reducing the
4646
### Stream a file into stdout:
4747

4848
```rescript
49+
open NodeJs
50+
4951
Fs.createReadStream("/path")
50-
->Stream.pipe(Process.(stdout(process)))
52+
->Stream.pipe(Process.stdout(Process.process))
5153
->Stream.onError(_ => Js.log("handleError"))
5254
```
5355

5456
### Echo server:
5557

5658
```rescript
59+
open NodeJs
60+
5761
Http.createServer((request, response) => {
5862
request->Stream.onData(data => Js.log(data))
5963
request->Stream.pipe(response)->ignore

0 commit comments

Comments
 (0)