next_bucket
v1.0.1
Published
next_bucket is a extended version of localstorage which support the javascript objects, specially designed for NextJS
Maintainers
Readme
next_bucket extended version of localstorage.
The next_bucket package allow the developer to use localstorage effectively with the javascript object, generally it encode the data into base64 encoding while storing and decode the base64 data while retrieving process.
Note: It is designed only for NextJS project.
To set object in localstorage:-
bucket.setObject("key", {
"name": "next_bucket"
});To read object from localstorage:-
bucket.getObject("key");To delete the localstorage object:-
bucket.deleteObject("key");To delete all the object from localstorage:-
bucket.clearObjectsAll();To update the data from localstorage:-
bucket.updateObject("key", "name", {
"data_key": "new_data"
});