neadb
v1.3.0
Published
NEaDB is a npm package to simulate a small and easy to use database using node and json
Downloads
6
Maintainers
Readme
NEaDB
Not Exactly a DataBase(NEaDB) is a package to simulate a small and easy to use database using node and json. This databse module uses a key value pair to store the values in a json file.
Installation
npm install neadb
Usage
const { neadb } = require("neadb");
const db = neadb();
Avaiable functions
db.create(); // Creates database file
db.createKey(key); // Creates json key to store values
db.deleteKey(key); // Deletes json key with it's value
db.storeValue(key, value); // Stores value in a given key
db.deleteValue(key); // Deletes value in a given key
db.getValue(key); // Retrieves value from given key
db.getLastUpdated(); // Retrieves last update date from database file