use-storeage
v1.0.0
Published
Use localStorage with json and expires time
Downloads
1
Readme
const { useStoreage } = require('use-storeage');
storage.set("foo", "bar", 1000); // Milliseconds
storage.get("foo"); // "bar"
setTimeout(() => console.log(storage.get("foo")), 1000); // null