4.2.1 • Published 1 year ago

pro.db-fork v4.2.1

Weekly downloads
-
License
CC BY-NC-ND 4.0
Repository
-
Last release
1 year ago

What is pro.db-fork ?

Installation

  • You need to install the package on your project
npm install pro.d-fork
yarn add pro.db-fork

Example File

encrypt

How To Use

const {DB} = require('pro.db-fork');

const db = new DB({fileName: `database.json`})

await db.set('key','value');// to set a data to database.
await db.get('key');// to get the data by key.
await db.delete('key');// to delete key from database.
await db.has('key','value');// return "true" or "false".

await db.add('key', 10;);// to add a number to the key.
await db.substract('key', 5);// to subtract a number from the key.
await db.push('key', 10);// to set a data at the end.
await db.math("key","+",5);// to math the numbers.

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

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

Contact

4.1.6

1 year ago

4.1.5

1 year ago

4.1.0

1 year ago

4.0.1

1 year ago

4.2.1

1 year ago

4.2.0

1 year ago

3.1.0

2 years ago

3.0.8

2 years ago