0.0.1 • Published 2 years ago
mscfdb v0.0.1
mscfdb
Examples
const kynuxtr = require("mscfdb")
const db = new mscf({
"dbName": "mscfdb", // Our DB file name.
"dbFolder": "database", // Our DB folder name.
"noBlankData": true,
"readable": true,
"language": "en" // You can write "tr" or "en".
})
db.set("x.y.z", "abc") // abc
db.get("x") // {y: {z: "abc"}}
db.all() // {x: {y: {z: "abc"}}}
db.push("a", "hello") // ["hello"]
db.push("a", "world") // ["hello", "world"]
db.unpush("a", "hello") // ["world"]
db.push("b", {test: "mscfdb"}) // [{test: "mscfdb"}]
db.push("b", {test2: "mscfdb2"}) // [{test: "mscfdb"}, {test2: "mscfdb2"}]
db.delByPriority("b", 1) // [{test2: "mscfdb"}]
db.setByPriority("b", {newtest:"hey this is edited"} 1) // [{newtest:"hey this is edited"}]
db.delete("x") // true
db.deleteAll() // true
0.0.1
2 years ago