JSPM

@devloli-main/local-db

0.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q26800F
  • License ISC

A simple local database for your Discord bot.

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-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