mrjsondb

Json File Database


Keywords
JSON, Database, file
License
MIT
Install
npm install mrjsondb@0.0.1

Documentation

Mr Json Database

Mr json database based json file.

Getting Started

This npm package just use fs.

Prerequisites

You must install 'NodeJS' and 'NPM' before useing; You can download them on NodeJS website.

How to use

Step 1 : Install mrjsondb :

npm i mrjsondb

Step 2 : Require package :

 const mrjsondb = require("imrjsondb");
 const db = new mrjsondb(<Database File Path>);

Json Database Look Like :

[
    {
        <Name> : <Value>
    }
]

Step 3 : Use methods :

A) Set data :

db.set(<Name>,<Value>) <Promise>

B) Get data :

db.get(<Name>) <Promise>

C) Update data :

db.update(<Name>,<Value>) <Promise>

D) Remove data :

db.remove(<Name>) <Promise>

Version

This version not LTS we update and upgrade it but now version is 1.1.0@latest .

Authors

Code and design : Mr.MHMirzaei

License

This project is licensed under the MIT License - see the LICENSE file for details