rescript-nodejs icon indicating copy to clipboard operation
rescript-nodejs copied to clipboard

Node bindings for ReScript

Results 4 rescript-nodejs issues
Sort by recently updated
recently updated
newest added

```diff --- a/src/Fs.res +++ b/src/Fs.res @@ -248,7 +248,7 @@ external openSyncWith: (string, ~flag: Flag.t=?, ~mode: int=?) => fd = "openSync @module("node:fs") external readFileSync: string => Buffer.t = "readFileSync" @module("node:fs") -external...

How to use childprocess.send and process.on("message")? main ```js const child = fork('xxx') child.send("hi") ``` child ```js process.on("message', () => {}) ```

enhancement

Unless I am not seeing something very obvious, why is everything in `Process` module typed `(t, ...) => ...`? Something as seemingly trivial as `NodeJs.Process.exit(0)` just wouldn't work.

As the title, I want to add some unit test, but found a bug, so this question was created.