node-elm-interface-to-json
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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, 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 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);
    });
});

Readme

Keywords

Package Sidebar

Install

npm i node-elm-interface-to-json

Weekly Downloads

0

Version

0.0.3

License

BSD-3-Clause

Last publish

Collaborators

  • eeue56