0.0.3 • Published 7 years ago
elm-interface-to-json v0.0.3
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"
}
]
}
]