easydb

Easy asynchronous JSON databse

Usage no npm install needed!

<script type="module">
  import easydb from 'https://cdn.skypack.dev/easydb';
</script>

README

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