@devloli-main/local-db

0.0.0 • Public • Published

LocalDB

A simple local database for your Discord bot.

Example Usage

install the package.

npm i @devloli-main/local-db

Require the package.

const { localDB } = require('@devloli-main/local-db'); // Import the module

Create a new database.

const { localDB } = require('@devloli-main/local-db');
const db = localDB();

Example usage.

db.set('guildID', 'name', { data: 'data' }); // Path: 1234567890/name.json | Data: { data: 'data' }
db.get('guildID', 'name'); // Get the data from the file.
db.delete('guildID', 'name'); // Delete the file.

Repository

GitHub

Package Sidebar

Install

npm i @devloli-main/local-db

Weekly Downloads

0

Version

0.0.0

License

ISC

Unpacked Size

2.46 kB

Total Files

3

Last publish

Collaborators

  • devloli-main