Getting Started
Installation
pnpm add @anymux/indexeddbBasic Usage
import { IndexedDbFileSystem } from "@anymux/indexeddb";
const fs = new IndexedDbFileSystem({ dbName: "my-app-fs" });
// Write a file
await fs.writeFile("/notes.txt", new TextEncoder().encode("Hello!"));
// Read it back
const content = await fs.readFile("/notes.txt");
// List directory
const entries = await fs.readDir("/");