@npmeska/client.db
v1.0.3
Published
Gözle Okunabilir Data Base Modülü
Downloads
2
Readme
CLIENT.DB
How To Install?
npm install @npmeska/client.db
How To Use?
NodeJs
const Database = require("@npmeska/client.db");
const db = new Database("./database.json");//Data Base Name
// Set data
db.set("Hello", "World");
// Get data
db.get("Hello"); // World
db.fetch("Hello");// World
// Delete data
db.delete("Hello");
db.get("Hello"); // undefined
db.has("Hello"); // false
db.fetch("Hello"); // undefined
db.set("age", 10);
db.add("age", 1); // 11
db.subtract("age", 9); // 2
db.all()
db.set("array", [ "apple" ]);
db.push("array", "orange"); // [ "apple", "orange" ]
// Clear data
db.clear();