Skip to content

eekelof/BunnyDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BunnyDB

JSON database for Bun

npm npm GitHub

Features

  • 🐰 Works with Bun
  • ⚡ Zero dependencies
  • ⚙️ JSON files in regular folders

Installation

bun i bunnydb

Usage

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") // []

Notes

Use / when creating nested dirs

await BunnyDB.dir("db")
await BunnyDB.dir("db/users")
await BunnyDB.dir("db/nested/dir")

License

MIT

About

JSON database for Bun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published