# What is Web Storage Manager?

## What can WSM do for you?

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

* 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
```

{% hint style="success" %}
&#x20;After nuget download, include **web-storage-manager.js** file to your page.&#x20;
{% endhint %}

## 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()
```

{% hint style="info" %}
Session storage is default, but you can set in page load as localStorage.
{% endhint %}

{% hint style="info" %}
**sessionStorage** is alive in current tab, but **localStorage** is alive in another tab \
(until closing browser).
{% endhint %}
