ping-minecraft-server
v1.0.1
Published
Ping a Minecraft Server
Downloads
164
Readme
ping-minecraft-server
Ping Minecraft Server.
- Well-typed. Written in TypeScript.
- Lightweight. Zero dependencies.
Usage
import ping from 'ping-minecraft-server'
ping(host, port, options?)
/* {
version: ...,
players: ...,
description: ...,
favicon: ...,
} */
Options
timeout
- type:
number
- default:
5000
Connect timeout in milliseconds.