medal.db

1.0.0 • Public • Published

What is Medal.db ?

  • It is a easy and quick storage unit that relies on objects to store data in JSON format

Installation

  • You need to install the package on your project
npm install medal.db
yarn add medal.db

Example File

encrypt

How To Use

const db = require('medal.db');

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.math("key","+",5);// to math the numbers.

db.fetch(); // to fetch the data from database. 
db.fetchAll();// to fetchAll data.
db.all();// to get all data in database.

db.backup("Filename");// to make a backup file.
db.reset();// to delete all data and database.

Contact

License

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i medal.db

      Weekly Downloads

      1

      Version

      1.0.0

      License

      ISC

      Unpacked Size

      32.7 kB

      Total Files

      4

      Last publish

      Collaborators

      • v_r_s