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"
         }
      ]
   }
]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    0
  • 0.0.1
    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