Local storage for Elm.
This library offers access to the browser's localstorage, which is limited to string keys and values. It uses Elm Tasks for storage IO.
It also provides a Subscription to localstorage events.
Since this module is not available as a package you'll have to use it from
source. See the example/elm-package.json file for the necessary
configuration. Even the repository
name has to match for the native code to
build.
Another way is to "self publish" this module using elm-ops-tooling. See an example.
The elm-github-install tools are another way to install this package.
Finally, the localize.py script can convert this code to use native JS names consistent with whatever module it is used along with (as source).
This work is derived directly from the LocalStorage.elm module in elm-flatris.