@un-boxing-hosting/boxing-hosting-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

NPM

un boxing hosting

https://bots.unboxingman.com API wrapper for Node.js

Installation

Simply run npm i @un-boxing-hosting/boxing-hosting-utils

Usage

(Async) json config

    "db": {
        "host": "localhost",
        "port": "3306",
        "user": "user",
        "password": "pass",
        "database": "database",
        "table": "table"
    }

example :

const config = require(`./config`);
const util = require('@un-boxing-hosting/boxing-hosting-utils');
//new client for eveything not db
const utils = new util.Client(config.dsapi);
// client for db functions 
const db = new util.db(config.db);
//get a id list that we host to add ids to list requst in support server
const list = utils.getIDList();
//a list of unboxing hosting staff and aray
const stafflist = utils.getStaffList();
//get id list to use
async function getList() {
   const idlist = await list;
}
//get stafflist to use
async function getStaffList() {
   const idlist = await stafflist;
}
//set data in the table if it is in the table update it
db.set(`id`,`this is data`);
//get the data for that id
db.get(`id`);
//delete id and data from the table
db.delete(`id`);

Support

Dark Side Development Discord/boxing hosting

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @un-boxing-hosting/boxing-hosting-utils

Weekly Downloads

2

Version

1.0.9

License

MIT

Unpacked Size

24 kB

Total Files

8

Last publish

Collaborators

  • un-boxing-man
  • drogoton