@tech-voyager/robin-db

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i @tech-voyager/robin-db

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

7.51 kB

Total Files

9

Last publish

Collaborators

  • tech-voyager