boxing-hosting-utils 1.0.9
Install from the command line:
Learn more about npm packages
$ npm install @un-boxing-hosting/boxing-hosting-utils@1.0.9
Install via package.json:
"@un-boxing-hosting/boxing-hosting-utils": "1.0.9"
About this version
https://bots.unboxingman.com API wrapper for Node.js
Simply run npm i @un-boxing-hosting/boxing-hosting-utils
(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`);
Details
- boxing-hosting-utils
- un-boxing-hosting
- over 1 year ago
- MIT
- 5 dependencies
Assets
- boxing-hosting-utils-1.0.9.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0