Package Exports
- earthmc
Readme
EarthMC-NPM
An unofficial wrapper library for interacting with the EarthMC Dynmap API.
This package is part of the EarthMC Toolkit and provides extensive info on people, places and more.
Install
bun add earthmcWhile I recommend Bun for its speed, you can also install the package with any other package manager.
PNPM ➜ pnpm add earthmc
Yarn ➜ yarn add earthmc
NPM (ew) ➜ npm i earthmc
Basic Usage
View the full documentation here.
import { Aurora } from 'earthmc' // ESM
const { Aurora } = require('earthmc') // CJS
const towns = await Aurora.Towns.all().catch(console.error)
console.log(towns.length)