minehut
v0.0.67
Published
TypeScript wrapper for the Minehut HTTP API
Downloads
247
Readme
Minehut
A TypeScript wrapper for the Minehut HTTP API
Installation
Install minehut with NPM
npm install minehut
cd my-project
Features
- Get basic Minehut network information.
- Get information about a Minehut server.
- Get a list of online servers.
- Get information about server icons and categories.
- Get information about a Minehut player such as their rank, friends, and if they are online.
Basic Usage
const minehut = new Minehut();
async function main() {
const stats = await minehut.getSimpleStats();
console.log(stats);
const lifestealServers = await minehut.servers.getOnlineServers({ category: "lifesteal" });
console.log(lifestealServers);
const player = await minehut.players.get('_Tarna_');
console.log(player);
}
For more examples, visit example.ts.
Contributing
Contributions are always welcome!
See contributing.md
for ways to get started.