Package Exports
- @devloli-main/local-db
- @devloli-main/local-db/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@devloli-main/local-db) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
LocalDB
A simple local database for your Discord bot.
Example Usage
install the package.
npm i @devloli-main/local-dbRequire the package.
const { localDB } = require('@devloli-main/local-db'); // Import the moduleCreate 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.