easydb
v3.0.6
Published
Easy asynchronous JSON databse
Downloads
20
Maintainers
Readme
easydb
Easy asynchronous JSON databse
How to install
$ npm install easydb
Example usage
var EasyDB = require('easydb')
var db = new EasyDB('file.json')
db.ready = function(){
//Print file.json value
console.log(db.value)
//Manipulate db.v object as you want
db.value.a = 1
db.value.b = 2
//Write db.value to file.json
db.write(function(){
console.log("Data stored!");
})
}