1.0.63 • Published 3 years ago

wrapped-in-localstorage v1.0.63

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Wrapped

Library for working with local storage


Installation

npm:

$ npm install wrapped-in-localstorage

CDN:

<script src="https://cdn.jsdelivr.net/npm/wrapped-in-localstorage@1.0.63/dist/wrapped-in-localstorage.min.js"></script>

Feature List

Checking if an element exists in local storage.

    WrappedLocalStorage.has();
  • Returns - Boolean.

Getting the value of an item in local storage.

    WrappedLocalStorage.get();
  • Returns - Object.

Create an item in local storage.

    WrappedLocalStorage.set();
  • It takes arguments - key, value.

Removing an item from local storage.

    WrappedLocalStorage.delete();
  • It takes an argument - key.

Clearing local storage.

    WrappedLocalStorage.deleteAll();

Get the number of local storage items.

    WrappedLocalStorage.getLength();
  • Returns - Nuber

Checking the health of local storage.

    WrappedLocalStorage.checkEnabled();
  • Returns - Boolean.
1.0.63

3 years ago

1.0.62

3 years ago

1.0.61

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago