neadb
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

NEaDB

NPM JavaScript Style Guide

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

/neadb/

    Package Sidebar

    Install

    npm i neadb

    Weekly Downloads

    6

    Version

    1.3.0

    License

    MIT

    Unpacked Size

    12.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • lnardon