JSON database for Bun
- 🐰 Works with Bun
- ⚡ Zero dependencies
- ⚙️ JSON files in regular folders
bun i bunnydb
import { BunnyDB } from "bunnydb"
await BunnyDB.dir("users") // true/false
await BunnyDB.set("users", "id", {id: "id", name: "Bob"}) // true/false
await BunnyDB.remove("users", "id") // true/false
await BunnyDB.exists("users", "id") // true/false
await BunnyDB.get("users", "id") // any/null
await BunnyDB.getAllIDs("users") // []
await BunnyDB.getAll("users") // []
await BunnyDB.dir("db")
await BunnyDB.dir("db/users")
await BunnyDB.dir("db/nested/dir")
MIT