What is Web Storage Manager?

This library include lots of methods to manage session storage or local storage on your web pages.

What can WSM do for you?

Commonly, we use web storage to keep our key-value lists. So, this library have some methods like;

  • to add item to list

  • to get item by id from list

  • to get all items from list

  • to remove item/all from list

Use budala.help() function to discover methods. You can see all methods under budala key. (Ex: budala.getAll()) Please let me know if you have some advices to improve this library via oguzhankircali@gmail.com e-mail address.

Install Web Storage Manager

Install package from Nuget.org

Install-Package Budala.Scripts.WebStorageManager -Version 1.0.9

After nuget download, include web-storage-manager.js file to your page.

Use it.

You can use budala keyword to call functions.

// to get some help about manager.
budala.help();

// to add some data to the list in webstorage
budala.addDummyData()

// to get your all data from the list in webstorage
budala.getAll()

Session storage is default, but you can set in page load as localStorage.

sessionStorage is alive in current tab, but localStorage is alive in another tab (until closing browser).

Last updated