1.1.5 • Published 6 years ago

@irsooti/localstorage-manager v1.1.5

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

Localstorage manager CircleCI

The library is pretty simple, because is pretty similar to legacy localstorage api.

  • tryGetValue(property): provided function is used to get the object accessing to corresponding property (like localStorage.getItem());

  • setValue(propertyName, object): set a property name and put your object. That's it.

  • removeValue(property): It works like localStorage.removeItem

  • reset(): It works like localStorage.clear
  • tryParseLocalStorage(): It try to parse the whole localStorage

Events handler

  • localstoragemanager:change: The event is fired when a change occurs by localStorageManager, it returns an empty detail for now;
  • localstoragemanager:remove: The event is fired when a property is removed by localStorageManager and it returns a detail wich contains the key removed
  • localstoragemanager:set: The event is fired when a property is setted by localStorageManager and it returns a detail wich contains the key and the value added
1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago