ezstorage

Minimal browser storage library with typed getters and bulk operations

CDN Link

Usage


import storage from 'https://cdn.jsdelivr.net/gh/sythora/ezstorage@main/ez.js'

// Set a key dynamically
storage.set('yourKey', {yourValue: 'some data'})

// Get a key with default value if missing
const data = storage.get('yourKey', {yourValue: 'default data'})
console.log(data)

// Remove a key
storage.remove('yourKey')

// Clear all keys
storage.clear()

Features

Demo