node-localstorage
node-localstorage copied to clipboard
A drop-in substitute for the browser native localStorage API that runs on node.js.
Addresses this [issue#76](https://github.com/lmaccherone/node-localstorage/issues/76)
webStorage is a abstracion which uses under the hood localstorage with proper parse/deserialize ```js webStorage.set( 'string', 'Hello World' ); // tslint:disable-next-line:no-magic-numbers webStorage.set( 'number', 123 ); webStorage.set( 'boolean', true ); webStorage.set(...
How to increase the default quota size for storage?
I'm running multiple instances of node-localstorage in the same directory from different processes, the problem is that when one instance creates an entry, this entry doesn't appear on the other...
ES6 introduced `globalThis`, which is supported by all LTS versions of Node (support was added in v12, the oldest still available LTS version) and obviates the need for users to...
I think having the option of not persisting data would be helpful. I just need this for running unit-tests where data shouldn't persist past the current run.
Right now, simply doing something like myLSInstance['a'] = 'something' will add to the in memory version of myLSInstance without ever saving to disk. Maybe use getItem and setItem.
It took me longer than I would have liked to get up and running with this lib: - I wasn't sure where the files were saved - I didn't understand...