0.0.1 • Published 3 years ago
storage-object v0.0.1
Usage
npm install storage-object
const storageObject = require("storage-object")
// saves it to localstorage
storageObject.user = {name:"bob"}
const bob = storageObject.user
// this also saves the change to localstorage
bob.username = "bob123"
// (reload the page and storageObject.user.username will still be "bob123")
0.0.1
3 years ago