Cakebase is an asynchronous json database for nodejs.
Use npm, yarn or pnpm to install cakebase.
npm i cakebase
const users = require('cakebase')('./users.json')
users
.get(obj => obj.location === "Mars")
.then(console.log)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Cakebase should only be used in small projects or test environments, as it is not performant enough to keep up with a real database.