shirdie.js
v0.0.3
Published
<h1 id="#" align="center">shirdie.js</h1> <p>shirdie.js <span style="color: green;">JSON</span> tabanlı hafif, hızlı ve temiz bir modüldür</p> <h1>📦 Kurulum</h1> <p> İndirmek için aşağıdaki kodu kopyalayın ve konsola yapıştırın.</p>
Downloads
7
Readme
npm i shirdie.js
↑
const db = require("shirdie.js")();
// fonksiyonlar
/*
set : kaydet
delete: sil
push: array içine ekle
pull array içinden al
increase: değeri arttır (SADECE SAYILAR)
decrease değeri azalt (SADECE SAYILAR)
get : Değeri bul
find : Değeri bul
*/
db.set("users", ["Ahmet", "Mehmet", "Eren"])
// görüntü :
// {
// users: ["Ahmet", "Mehmet", "Eren"],
// }
db.delete("users")
// görüntü :
// {
// }
db.pull("users", "Ahmet")
// görüntü
// {
// users: ["Mehmet", "Eren"],
// }
db.push("users", "Ahmet")
// görüntü
// {
// users: ["Ahmet", "Mehmet", "Eren"],
// }
db.set("deger", 5)
db.increase("deger", 3)
// görüntü
// {
// deger: 2
// }
db.decrease("deger", 5)
// görüntü
// {
// deger: 3
// }