featherstore-plugin-memstore
v0.1.11
Published
Tiny, 200B in-memory store for use with featherstore
Downloads
10
Readme
featherstore-plugin-memstore
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