Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eeue56/node-elm-interface-to-json
A Javascript version of elm-interface-to-json
https://github.com/eeue56/node-elm-interface-to-json
Last synced: about 1 month ago
JSON representation
A Javascript version of elm-interface-to-json
- Host: GitHub
- URL: https://github.com/eeue56/node-elm-interface-to-json
- Owner: eeue56
- License: bsd-3-clause
- Created: 2017-08-06T12:40:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-15T03:25:17.000Z (over 7 years ago)
- Last Synced: 2024-08-09T23:04:08.794Z (5 months ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-elm-interface-to-json
A Javascript version of elm-interface-to-json.
## Install
```
npm install --save node-elm-interface-to-json
```The library is intended to be used in order to gain information about a compiled Elm project.
This information is particularly useful in order to generate valid Elm code.Unlike @stoeffel's [elm-interface-to-json](https://github.com/stoeffel/elm-interface-to-json/), this project is written only in JS, meaning that library interop is a little easier to work with.
The parser is based on @shamansir's [node-elm-repl](https://github.com/shamansir/node-elm-repl) project.
## Usage
```
import getExportedInterfaces from "node-elm-interface-to-json";
getExportedInterfaces("./example", "0.18.0")
.then(modules => {
modules.map((module) => {
console.log(module.moduleName);
console.log(module.exports);
});
});```