Skip to content

rayzr522/node-minecraft-pinger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minecraft-pinger

js-standard-style license

A promise-based minecraft pinger in Node.js

Installation

$ npm install --save-prod '@rayzr/minecraft-pinger'

TODOs

  • Calculate latency in milliseconds
  • Resolve SRV dns entry
  • Able to ping servers prior version 1.6

Example

const pinger = require('@rayzr/minecraft-pinger')

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

// Callback
pinger.ping('localhost', 25565, (error, result) => {
  if (error) return console.error(error)
  console.log(result)
})

License

MIT

About

A promise based minecraft pinger in Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%