6.0.7 • Published 2 years ago
minexon.js v6.0.7
MineXON
Installation
npm install minexon.js@latest
Examples
/**
* Checks is password is correct.
*
* @returns {boolean}
*/
let isValid = await minexon.checkAccount({
username: "demo",
password: "demo"
});
/**
* Get account full info.
* @returns {JSON}
*/
let accountInfo = await minexon.getAccountInfo({
username: 'demo'
});
/**
* Get account socials info.
* @returns {JSON}
*/
let socials = await minexon.getAccountSocials({
username: 'demo'
});
/**
* Gets all the News from your website.
*
* @returns {Array}
*/
let news = await minexon.getNews();
/**
* Get All Credit History
*
* @returns {Array}
*/
let creditHistory = await minexon.getCreditHistory({
size: 10
});
/**
* Get Credit History by username
*
* @returns {Array}
*/
let creditHistoryUser = await minexon.getCreditHistory({
size: 10,
username: 'demo'
});
/**
* Get all Credit Top
*
* @returns {Array}
*/
let creditTopAll = await minexon.getCreditTop({
type: 'all'
});
/**
* Get month Credit Top
*
* @returns {Array}
*/
let creditTopJustMonth = await minexon.getCreditTop({
type: 'justMonth'
});
/**
* Get All Store History
*
* @returns {Array}
*/
let storeHistory = await minexon.getStoreHistory({
size: 10
});
/**
* Get Store History by username
*
* @returns {Array}
*/
let storeHistoryUser = await minexon.getStoreHistory({
size: 10,
username: 'demo'
});
Contributing
Pull requiest are welcome. For major changes, please open an issue first to discuss what you would like to change.