@nacho-cs/min-db
v1.0.0
Published
a sleek, easy, and lightweight database
Downloads
5
Readme
min-db
minimal database
import { DB } from "@nacho-cs/min-db";
const db = new DB("./users.json", { users: [] }); // path, default data
const { users } = db.data; // equivalent of db.data.users
users.push({ name: "joe smith", age: 27 });
console.log(users.filter(x => age > 20)); // returns joe smith