mine-api
mine-api
is a simple wrapper around the Minecraft API. The package is really lightweight and does use Promises as retuntype.
Installation
npm install --save mine-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; }