This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

minecraft-ping-js

1.0.2 • Public • Published

minecraft-ping-js

js-standard-style license

A Minecraft Server Pinger in Node.js

Example

const pinger = require('minecraft-ping-js');

// Promise
pinger.pingWithPromise('localhost', 25565).then(console.log).catch(console.error);

// Async
pinger.ping('localhost', 25565, (error, result) => {
    if (error) {
        console.error(error);
    } else {
        console.log(result);
    }
});

Output

{
  "version": { "name": "Requires MC 1.8 / 1.16", "protocol": 754 },
  "players": { "max": 200000, "online": 86460, "sample": [] },
  "description": "             §aHypixel Network  §c[1.8-1.16]\n              §e§lEASTER §b§lEVENT §c§l+ §a§lSALE",
  "favicon": "data:image/png;base64,<LONG_DATA>",
  "ping": 100
}

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i minecraft-ping-js

Weekly Downloads

446

Version

1.0.2

License

MIT

Unpacked Size

9.25 kB

Total Files

6

Last publish

Collaborators

  • eereeska