@rescript/tools

0.6.1 • Public • Published

ReScript Tools

Install

npm install --save-dev @rescript/tools

CLI Usage

rescript-tools --help

Generate documentation

Print JSON:

rescript-tools doc src/EntryPointLibFile.res

Write JSON:

rescript-tools doc src/EntryPointLibFile.res > doc.json

Reanalyze

rescript-tools reanalyze --help

Decode JSON

Add to bs-dev-dependencies:

"bs-dev-dependencies": ["@rescript/tools"]
// Read JSON file and parse with `Js.Json.parseExn`
json->RescriptTools.Docgen.decodeFromJson

Readme

Keywords

Package Sidebar

Install

npm i @rescript/tools

Weekly Downloads

885

Version

0.6.1

License

MIT

Unpacked Size

38.5 MB

Total Files

13

Last publish

Collaborators

  • _zth
  • cristianoc
  • cknittel
  • ryyppy
  • chenglou
  • hongbo_zhang