/localstorage

Elm effect manager for local storage

Primary LanguageElmBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

LocalStorage

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.

Installing the beta version

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.

Credits

This work is derived directly from the LocalStorage.elm module in elm-flatris.