0.0.2 • Published 1 year ago

@tech-voyager/robin-db v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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