simple-storage-wrapper
v1.0.0
Published
A module to simplifie the ineraction with localstorage
Downloads
12
Readme
Storage-wrapper
Simplifie the interaction with localstorage and sessionstorage, making it easier for users to store, retrieve and delete key-value pairs without having to write repetetive code. You can with this wrapper, set, get and remove items. You can also switch between using localstorage(default) and sessionstorage. It also supports:
- Expiration possibility for localstorage items
- Console messages for success and or errors
- Check availibility for localStorage
Installation
For Node.js or Browserify usage:
npm i storageWrapper
Usage
Examples
Licens
MIT