@rescript/tools

0.6.6 • 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

/@rescript/tools/

    Package Sidebar

    Install

    npm i @rescript/tools

    Weekly Downloads

    175

    Version

    0.6.6

    License

    MIT

    Unpacked Size

    41 MB

    Total Files

    14

    Last publish

    Collaborators

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