1.0.5 • Published 6 years ago
easyjson-db v1.0.5
EasyJSON Database npm i easyjson-db
Warning, This package can't be installed globally or it might not work properly!
To specify were your database is, use (Example: const dbMe = new dbJSON('./json/mydb.json'); )
To save data to the JSON file, use (Example: dbMe.save(
{"${variable1}": "${variable2}"}
))To get data from the JSON file, use (Example: let myData = dbMe.get())
Finally, you can console log it to test it by using console.log(myData.variable1)
I know this just looks like a much more complicated version of just importing the json with require and reading it, but I made this just to test myself and to help others with JSON databases, I know that JSON isnt a really good database to use on the default but this is my first package!