Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more

Usage

import storageObject from "deno.land/x/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")