0.0.0 • Published 4 years ago

yl.db v0.0.0

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

☀yl.db

An easy, non-locking, JSON databse wrapper designed to be easy to setup & utilize.

Getting Started

npm i yl.db

🎨Some Example

const yldb = require("yl.db")


//Create new Value!
yldb.write("test", "this is the result!")

//Read the value....
yldb.read("test")
//Output: "this is the result!"




//Array EXAMPLE//

//Create Array
yldb.write("alot of value", ["PUSH AGAIN!!"])

//Read the Array value
yldb.read("alot of value")
//Output: ["PUSH AGAIN!!"]

//Push value
yldb.read("alot of value", "AGAIN!!!")
//Read the Pushed Value
yldb.read("alot of value")
//Output: ["PUSH AGAIN!!", "AGAIN!!!"]



//Read all Value
yldb.readall()
// Output ? Try yourself ;)

//Import your JSON db to our DB!
//Your DB is Private. We don't read your DB. And your DB isn't public.
yldb.import("filename.json")
//me.db will overwritted. your JSON file isn't overwritted anymore.

//Backup / Export your me.db as File!
yldb.export("filename.json")

Community

Any question or Doubt can join our Discord Server

0.0.0

4 years ago