minecraft-api
minecraft-api
is a simple wrapper around the Minecraft API. The package is really lightweight and does use Promises as return type.
Installation
npm install --save minecraft-api
Usage
MinecraftAPI.uuidForName(username)
Parameters:
- username: The username to resolve the UUID for
Example:
const MinecraftAPI = ; { MinecraftAPI }
Example (async/await):
const MinecraftAPI = ; { try const uuid = await MinecraftAPI; console; catcherr console; }