Skip to content

fredcy/localstorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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).

Credits

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