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.