2.0.0 • Published 3 years ago

custom.db v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Installation

npm i custom.db@latest

Setting up

const {Database} = require("custom.db")

Examples

let db = new Database({
    path: "Databases",
    name: "database"
})

db.set("any.path", "anything to save"); // saves "anything to save" to path "any.path"

db.get("any.path", "anything to save");
&& 
db.fetch("any.path", "anything to save"); // gets "anything to save" from path "any.path"

db.has("any.path");
&&
db.exists("any.path"); // returns a boolean if the path exists.

db.delete("any.path") // deletes the path "any.path"

db.deleteAll() // deletes the full database

db.add("anything.toadd", 10) // add 10 to path "anything.toadd"
db.substr("anything.tosubstr", 10) // substracts 10 from path "anything.tosubstr"

for any support https://discord.gg/UQtNvk8rJe

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago