easydb

3.0.6 • Public • Published

easydb

Easy asynchronous JSON databse

NPM

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!");
    })
    
}

Package Sidebar

Install

npm i easydb

Weekly Downloads

8

Version

3.0.6

License

BSD-3-Clause

Last publish

Collaborators

  • samuelnovaes