2.0.0 • Published 6 years ago

ha-store-browser v2.0.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
6 years ago

ha-store-browser Node Build Status Dependencies Status


HA-store-browser is a plugin to replace the default in-memory storage in ha-store. It offers a few choices, based on your preferences. Keys can be put in either LocalStorage or indexedDB.


Installing

npm install ha-store-browser

Usage

Store

const store = require('ha-store');
const browserStore = require('ha-store-browser/localstorage')(); // Or 'ha-store-browser/indexeddb'
const itemStore = store({
  resolver: getItems,
  store: browserStore('items'), // Provide a database name
});

Testing

npm test

Contribute

Please do! This is an open source project - if you see something that you want, open an issue or file a pull request.

If you have a major change, it would be better to open an issue first so that we can talk about it.

I am always looking for more maintainers, as well. Get involved.

License

Apache 2.0 (c) 2018 Frederic Charette

2.0.0

6 years ago

1.0.0

6 years ago