0.0.4 • Published 17 days ago
@groww-tech/web-storage v0.0.4
web-storage
Web storage is a storage service that provides simple APIs to get/set data to Local Storage and Cookies. Support for further browser storage is coming soon.
Installation
npm i @groww-tech/web-storage
API
Web Storage has a pretty straight forward API usage.
import { getDataFromStorage, STORAGE_TYPE } from '@groww-tech/web-storage';
console.log(getDataFromStorage('sdjhfsjdgfd', STORAGE_TYPE.LOCAL_STORAGE)); // Output - Data corresponding to the key provided will be return from local storage
License
Web Storage is licensed under a MIT License.
This package is customized for use in Groww projects. Use at your own risk.