0.1.4 • Published 1 month ago
bun-storage v0.1.4
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