Accepts arbitrary keys and values as it will JSON encode all keys and values before storing and will parse the JSON when retrieving.
https://gibme-npm.github.io/lazy-storage/
import LazyStorage from '@gibme/lazy-storage';
const storage = new LazyStorage();
{
storage.set({ some: 'key' }, { some: 'value' });
const data = storage.get({ some: 'key' });
if (data) {
console.log(data);
storage.del({ some: 'key' });
}
}