rescript-lang.org icon indicating copy to clipboard operation
rescript-lang.org copied to clipboard

Document `Node` module

Open wontheone1 opened this issue 4 years ago • 1 comments

Background:

I was looking for a way to read a text file synchronously. Googling and ending up places like this [NPM] package(https://github.com/sikanhe/reason-nodejs).

In reality what I wanted was already there out of the box in Node module. (let input = Node.Fs.readFileAsUtf8Sync("input/Week1/Year2020Day3.txt")

Without docs mentioning the Node module on the official doc, it's really hard to discover.

Suggestions:

We could at least start by mentioning the existence of module and some WIP documentation page. As long as template is there, I think it'll be easier for people to make PR to fill in the missing docs.

wontheone1 avatar Jun 25 '21 08:06 wontheone1

Related to #359

ryyppy avatar Jun 25 '21 08:06 ryyppy

The node module is deprecated now (use https://github.com/TheSpyder/rescript-nodejs instead)

fhammerschmidt avatar Mar 10 '24 00:03 fhammerschmidt