Simple replacement for web storages (i.e. localStorage) with the same API
npm install memory-web-storage

This is a library providing a singleton object with API similar to Web Storage:
- getItem
- setItem
- removeItem
- clear
Mentioned singleton object.
Factory function creating memory storages.
Meant to be used in browsers for testing storages support. It simply tries to perform most common operations on the storage object and wraps that with try/catch blocks.