pingerminecraft
v2.0.1
Published
A Nodejs library that allows you to get information about the minecraft server using https://api.mcsrvstat.us/
Downloads
16
Maintainers
Readme
This library uses https://api.mcsrvstat.us/ !
Nodejs library that allows you to get information about the minecraft server
Install
npm i pingerminecraft
OS Dependencies
- Node.js
Lib Dependencies
- undici
Example 1: Async Function
const pingerMinecraft = require("pingerminecraft")
const data = await pingerMinecraft('95.216.62.176:25565')
console.log(data)
Example 2: Then constructs
const pingerMinecraft = require("pingerminecraft")
pingerMinecraft('95.216.62.176:25565')
.then(data => console.log(data))
.catch(error => console.error(error))
Example 2: Then constructs, bedrock true
const pingerMinecraft = require("pingerminecraft")
pingerMinecraft('95.216.62.176:25566', true)
.then(console.log)
.catch(console.error)