1.0.1 • Published 7 years ago

structured-localstorage v1.0.1

Weekly downloads
6
License
Avast
Repository
github
Last release
7 years ago

Transparently store JSONable data into localStorage

localStorage provides a simple key - string value storage. This module behaves like a regular object and stores its data to localStorage on the background.

Requires browsers that support Proxy object:

  • Chrome 49+
  • Firefox 18+
  • Edge
  • Safari 10+

Usage

var storage = require('structured-localstorage');

storage.key = { subkey: 'value' };
storage.key.subkey = 'new value';