@tech-voyager/robin-db
v0.0.2
Published
Simple and lightweight database! Based on powerful analogues, but offers frequent updates and support!
Downloads
15
Maintainers
Readme
How to use?
Easy to use!
?Example¿
const { Storage } = require("robin-db");
const db = new Storage({
path: "myDb",
table: ["users"],
extname: ".sql" // aslo .json
// key: "your_key",
});
(async function main() {
await db.setData("users", "money", { uid: 1234, money: 500, sybol: "$" }).then(() => {
console.log("Data recorded successfully");
});
const value = await db.getData("users", "money").then(console.log);
// if there is key
await db.setData("users", "bio", "i love cats:0", "your_key");
})();
Docs: https://docs.robin.surge.sh