Javascript Library for Minecraft Utilities https://mcutils.xyz/
Go to file
Liam 4bca857c80
All checks were successful
Publish Package / build (push) Successful in 20s
add skinpart enum
2024-04-16 18:02:15 +01:00
.gitea/workflows update readme 2024-04-15 09:02:07 +01:00
src add skinpart enum 2024-04-16 18:02:15 +01:00
test cleanup 2024-04-15 08:56:26 +01:00
.gitignore Initial commit 2024-04-14 20:11:04 +00:00
.npmrc joe 2024-04-14 22:45:08 +01:00
jest.config.ts initital commit 2024-04-14 21:11:46 +01:00
package.json add skinpart enum 2024-04-16 18:02:15 +01:00
pnpm-lock.yaml initital commit 2024-04-14 21:11:46 +01:00
README.md update readme 2024-04-15 09:02:07 +01:00
tsconfig.json initital commit 2024-04-14 21:11:46 +01:00

Minecraft Utilities - Javascript Library

The JavaScript library for the Minecraft Utilities API.

Usage

Install the package using npm:

npm install mcutils-library

Get player:

import { getPlayer } from "mcutils-library";

const cachedPlayer = await getPlayer(playerId);
const { player } = cachedPlayer;

console.log(player);

Get Server:

import { getServer } from "mcutils-library";
import JavaMinecraftServer from "mcutils-library/dist/types/server/javaServer";

const cachedServer = await getServer(ServerPlatform.Java, "hypixel.net");
const { server } = cachedServer;

console.log(server);