npm

ping-minecraft-server
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

ping-minecraft-server

npm

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.

Package Sidebar

Install

npm i ping-minecraft-server

Weekly Downloads

37

Version

1.0.1

License

MIT

Unpacked Size

5.23 kB

Total Files

6

Last publish

Collaborators

  • shigma