Skip to main content

A wrapper for the EarthMC API (v3)

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
4 months ago (1.1.2)

EarthMC API Wrapper

Installation

See the package on JSR.

Example Usage

import { EarthMC } from "@celery/earthmc";

const api = new EarthMC({ name: "foo" })

const players = await api.players() // [{ uuid:  ... , name: ... }, ...]
const town = await api.town(players[0].town.uuid) // [{ board: ... , ... }]

Add Package

deno add @celery/earthmc

Import symbol

import * as mod from "@celery/earthmc/";

Add Package

npx jsr add @celery/earthmc

Import symbol

import * as mod from "@celery/earthmc/";

Add Package

yarn dlx jsr add @celery/earthmc

Import symbol

import * as mod from "@celery/earthmc/";

Add Package

pnpm dlx jsr add @celery/earthmc

Import symbol

import * as mod from "@celery/earthmc/";

Add Package

bunx jsr add @celery/earthmc

Import symbol

import * as mod from "@celery/earthmc/";