1.13.2 • Published 27 days ago
mojang-lib v1.13.2
mojang-lib
A modern wrapper for interacting with the Mojang API. This library is a rewritten version of minecraft-lib in Typescript. The list of changes made are available here.
Install
PNPM - pnpm add mojang-lib
(Recommended)
NPM - npm i mojang-lib
Yarn - yarn add mojang-lib
Usage
ESM
import { players, servers } from "mojang-lib"
const server = await servers.get('play.earthmc.net')
console.log(server)
const player = await players.get('Owen3H')
console.log(player)
CommonJS
const MCAPI = require("mojang-lib")
async function runTest() {
const server = await MCAPI.servers.get('play.earthmc.net')
console.log(server)
const player = await MCAPI.players.get('Owen3H')
console.log(player)
}
runTest()
1.13.2
27 days ago
1.13.1
7 months ago
1.13.0
8 months ago
1.12.1
9 months ago
1.12.0
9 months ago
1.11.1
10 months ago
1.11.0
10 months ago
1.10.1
10 months ago
1.10.0
10 months ago
1.9.0
10 months ago
1.8.1
10 months ago
1.8.0
10 months ago
1.7.0
11 months ago
1.6.0
11 months ago
1.5.1
11 months ago
1.5.0
11 months ago
1.4.0
11 months ago
1.3.0
11 months ago
1.2.1
11 months ago
1.2.0
11 months ago
1.1.0
11 months ago
1.0.0
11 months ago
0.1.0
11 months ago