Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.
dennisbrunerPublic archive

About

A promise based minecraft pinger in Node.js

Topics

Resources

Stars

15 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

minecraft-pinger

js-standard-style license

A promise-based minecraft pinger in Node.js

TODOs

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

Example

const pinger = require('minecraft-pinger')

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

// Async
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

Topics

Resources

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages