https://github.com/joakin/elm-js-interop
Elm to Js interop alternatives
https://github.com/joakin/elm-js-interop
elm javascript
Last synced: 4 months ago
JSON representation
Elm to Js interop alternatives
- Host: GitHub
- URL: https://github.com/joakin/elm-js-interop
- Owner: joakin
- Created: 2019-04-06T15:55:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-02T18:07:07.000Z (over 3 years ago)
- Last Synced: 2025-04-19T15:56:03.045Z (about 1 year ago)
- Topics: elm, javascript
- Language: JavaScript
- Homepage: http://joakin.github.io/elm-js-interop
- Size: 41 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elm-JS interop
**You probably don't need or shouldn't use this. If you do, you need to be
experienced in JS and Elm, and thread carefully to not break purity.**
**This works for 0.19, and it is likely to break or not even work in future
versions of Elm. If you use this you are solely responsible for any future pain
you may incur on by not being able to easily migrate your app to new Elm
versions**.
See `src/Main.elm` for examples of usage of the sync and async FFI. Within the
boundaries of possibility, the library still tries to encapsulate JS code
running to not break the Elm runtime or your app.
[Live example from the Main.elm code](http://joakin.github.io/elm-js-interop)
If you want to add this to your application, copy `src/Js.elm` to your app, and
include the JS file in `public/elm-js-interop.js`.
Stay safe out there.