ReScript Tools
npm install @rescript/tools``sh`
npm install --save-dev @rescript/tools
`sh`
rescript-tools --help
Print JSON:
`sh`
rescript-tools doc src/EntryPointLibFile.res
Write JSON:
`sh`
rescript-tools doc src/EntryPointLibFile.res > doc.json
`sh`
rescript-tools reanalyze --help
Add to bs-dev-dependencies:
`json`
"bs-dev-dependencies": ["@rescript/tools"]
`rescriptJs.Json.parseExn
// Read JSON file and parse with ``
json->RescriptTools.Docgen.decodeFromJson