0.1.11 • Published 5 years ago

featherstore-plugin-memstore v0.1.11

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

featherstore-plugin-memstore Build Status

Tiny, 200B in-memory storage for use with featherstore. Replaces default window.localStorage use with in-memory storage.

However, keep in mind that stored data will be cleared on page reload. Not recommended for storing data that you want to persist across sessions and page reloads.

Install

npm i featherstore featherstore-plugin-memstore or yarn add featherstore featherstore-plugin-memstore

Usage

import featherstore from 'featherstore';
import memstore from 'featherstore-plugin-memstore';

const store = featherstore({
  storage: memstore // pass as `storage` in options
});

License

MIT © yatharthk