0.0.0 • Published 3 years ago

@devloli-main/local-db v0.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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

0.0.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago