npm.io
0.0.5 • Published 2 years ago

@groww-tech/web-storage

Licence
MIT
Version
0.0.5
Deps
2
Size
29 kB
Vulns
1
Weekly
0
Stars
5

web-storage

npm version minzipped size GitHub Workflow Status


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.



Keywords