0.0.0 • Published 4 years ago

mysweet.db v0.0.0

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

MySweet.db

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

Getting Started

npm i mysweet.db

🎨Some Example

const medb = require("mysweet.db")


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

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




//PUSH EXAMPLE//

//Push the Value (That's ok if there's not created new value. because it's auto created)
medb.push("alot of value", "PUSH AGAIN!!")
//pushed

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

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



//Read all Value
medb.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.
medb.import("filename.json")
//me.db will overwritted. your JSON file isn't overwritted anymore.

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

Community

Any question or Doubt can join our Discord Server

0.0.0

4 years ago