dc-ez.db

1.2.1 • Public • Published

dc-ez.db

A simple and easy database package for discord bots.

How To Install

  • npm i dc-ez.db

How To Use

Add package to your project with: const db = require('dc-ez.db');

Examples

db.set('serverPrefix', '!');
// output: true

db.get('serverPrefix');
// output: '!'

db.set('items', ['apple', 'orange']);
// output: true

db.push('items', 'banana');
// output: true

db.get('items');
// output: ['apple', 'orange', 'banana']

db.remove('items');
// output: true
// 'items' database removed

db.set('level', 10);
// output: true

db.add('level', 23);
// output: true

db.get('level');
//output: 33

Package Sidebar

Install

npm i dc-ez.db

Weekly Downloads

1

Version

1.2.1

License

ISC

Unpacked Size

3.12 kB

Total Files

3

Last publish

Collaborators

  • zeppie