#
Getting Started
#
Requirements
- NodeJS or Deno (used to run JavaScript code)
- NPM (used to install Node packages)
#
Installation
npm install minecraftstatuspinger
#
Example
import mc from "minecraftstatuspinger";
let result = await mc.lookup({ host: "mc.hypixel.net" })
console.log(result);
Advanced example!
import mc from "minecraftstatuspinger";
let result = await mc.lookup({
host: "mc.hypixel.net",
port: 25565,
ping: true,
protocolVersion: 764,
timeout: 10000,
throwOnParseError: true,
disableSRV: false,
disableJSONParse: false
})
console.log(result);