re-localforage

1.1.0 • Public • Published

re-localforage

yarn add localforage
yarn add re-localforage

Then add

  "bs-dependencies": ["re-localforage"]

to your bsconfig.json.

Then you can use it like this (assuming you have some webpack setup that can import Elm files like elm-webpack-loader):

let lf = LocalForage.instance;
/* This'll be a promise of unit. */
let setItemPromise = lf##setItem("user", someJson)
/* This'll be a promise with some json in it.*/
let getItemPromise = lf##getItem("user")

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    2
  • 1.0.0
    3

Package Sidebar

Install

npm i re-localforage

Weekly Downloads

5

Version

1.1.0

License

MIT

Last publish

Collaborators

  • splodingsocks