Reads all elm files of a project and returns a list of modules with their functions.
$ npm i elm-interface-to-json -g
$ elm-interface-to-json --path ./test/ # default path is current working dir
[
{
"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"
}
]
}
]