Expirable data storage based on localStorage and sessionStorage.
npm install expirable-storage

Expirable data storage based on localStorage and sessionStorage.
To get a local copy up and running follow these simple steps.
Be sure you use latest stable version of npm:
``sh`
npm install npm@latest -g
`bash`
npm install expirable-storageOr
yarn add expirable-storage
`js
import {
expirableLocalStorage,
expirableSessionStorage,
} from "expirable-storage";
const expires = 900; // 900 seconds (15 minutes)
expirableLocalStorage.setItem("key1", "value1", expires);
expirableLocalStorage.getItem("key1");
expirableSessionStorage.setItem("key2", "value2", expires);
expirableSessionStorage.getItem("key2");
`
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated. For detailed contributing guidelines, please see CONTRIBUTING.md
Distributed under the MIT` License. See LICENSE for more information.
Valentin Podkamennyi - @vpodk
Project Link: https://github.com/wayfair-incubator/expirable-storage
This template was adapted from
https://github.com/othneildrew/Best-README-Template.