Skip to content

idleberg/bun-storage

Repository files navigation

bun-storage

A ponyfill for the Storage API, utilizing SQLite

License Version Build

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.