This library uses https://api.mcsrvstat.us/ !
Nodejs library that allows you to get information about the minecraft server
npm i pingerminecraft
- Node.js
- undici
const pingerMinecraft = require("pingerminecraft")
const data = await pingerMinecraft('95.216.62.176:25565')
console.log(data)
const pingerMinecraft = require("pingerminecraft")
pingerMinecraft('95.216.62.176:25565')
.then(data => console.log(data))
.catch(error => console.error(error))
const pingerMinecraft = require("pingerminecraft")
pingerMinecraft('95.216.62.176:25566', true)
.then(console.log)
.catch(console.error)