npm install pro.db-arzex
yarn add pro.db-arzex
const dbClass = require('pro.db-arzex');
const db = new dbClass("data.json") // or any another name (added multiple databases feauture)
db.set('key','value');// to set a data to database.
db.get('key');// to get the data by key.
db.delete('key');// to delete key from database.
db.has('key','value');// return "true" or "false".
db.add('key', 10;);// to add a number to the key.
db.substract('key', 5);// to subtract a number from the key.
db.push('key', 10);// to set a data at the end.
db.remove('key',10); // remove 10 from array "key"
db.math("key","+",5);// to math the numbers.
db.fetch(); // to fetch the data from database.
db.fetchAll();// to fetchAll data.
//db.all(); Removed
db.backup("Filename");// to make a backup file for data base.
db.reset();// to delete all data and database.