Foreign function interface for Elm.
Read The Limits of Elm/JS Interop first.
npm i pravdomil/elm-ffi --save-dev
- Add
node_modules/elm-ffi/src
intoelm.json
/source-directories
.
- Use
JavaScript
module. elm make src/Main.elm --output elm.js
elm-ffi elm.js
To show commandline options run elm-ffi
.