const { JsonDatabase } = require("metus.db");
const db = new JsonDatabase({ path: "./data.json" }); // Dosya yolunuz.
db.set("hello", 'hi'); // hi
db.get("hello"); // hi
db.has("hello"); // true
db.add("number", 100); // +100
db.subtract("number", 100); // -100
db.deleteEach("@gmail.com"); // true
db.delete("hello"); // true
db.deleteAll(); // true
metus.db
0.0.4 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i metus.db
Weekly Downloads
1
Version
0.0.4
License
LGPL-3.0-only
Unpacked Size
38.9 kB
Total Files
4