Skip to content

Commit 3f18ceb

Browse files
committed
add open NodeJs to readme examples
1 parent 09a2b92 commit 3f18ceb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ 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")
5052
->Stream.pipe(Process.(stdout(process)))
5153
->Stream.onError(_ => Js.log("handleError"))
@@ -54,6 +56,8 @@ Fs.createReadStream("/path")
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)