0.1.8 • Published 3 years ago

mcpinger v0.1.8

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

MCPinger

Installation

$ npm install mcpinger

Example

let mcpinger = require("mcpinger");

/**
 * Options:
 * - host: The ip of the server.
 * - port?: Port of the server. (Default 25565)
 * - timeout?: (Default 5000)
 * - protocolVersion?: (Default -1) https://wiki.vg/Protocol_version_numbers
 * 
 * */
mcpinger.java({ host: "example.com" }).then((res) => {
  console.log(res);
  /**
   * Example output:
   * 
   * {
   *   protocolVersion: 754,
   *   version: 'Paper 1.16.5',
   *   onlinePlayerCount: 1,
   *   maxPlayerCount: 25,
   *   playerList: [
   *     {
   *       uuid: 'example-uuid',
   *       name: 'example-name'
   *     }
   *   ],
   *   favicon: Buffer,
   *   motd: 'Example.',
   * }
   * 
   * */
});
0.1.8

3 years ago

0.1.7

3 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.0.1

3 years ago