elm-interface-to-json

0.0.3 • Public • Published

elm-interface-to-json

Reads all elm files of a project and returns a list of modules with there functions.

Installation

$ npm i elm-interface-to-json -g

Usage

$ elm-interface-to-json --path ./test/ # default path is current working dir

Output

[
   {
      "moduleName":"Foo.Bar",
      "types":[
         {
            "signature":"Int -> Int -> Int",
            "name":"moo"
         }
      ]
   },
   {
      "moduleName":"Main",
      "types":[
         {
            "signature":"Int -> Int -> Int",
            "name":"add"
         },
         {
            "signature":"Int -> Int -> Int",
            "name":"addHelper"
         }
      ]
   }
]

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i elm-interface-to-json

    Weekly Downloads

    1

    Version

    0.0.3

    License

    BSD-3-Clause

    Last publish

    Collaborators

    • schtoeffel