bun-storage
v0.1.5
Published
A ponyfill for the Storage API, utilizing SQLite
Downloads
106
Maintainers
Readme
bun-storage
A ponyfill for the Storage API, utilizing SQLite
Installation
bun install bun-storage
Usage
localStorage
createLocalStorage(dbFile: string)
sessionStorage
createSessionStorage()
Example:
import { createLocalStorage, createSessionStorage } from 'bun-storage';
const localStorage = createLocalStorage('./db.sqlite');
const sessionStorage = createSessionStorage();
License
This work is licensed under The MIT License