https://github.com/makarasty/pingerminecraft
💎 A Nodejs library that allows you to get information about the minecart server using https://api.mcsrvstat.us/
https://github.com/makarasty/pingerminecraft
fetcher minecraft minecraft-server ping pinger poster
Last synced: 5 months ago
JSON representation
💎 A Nodejs library that allows you to get information about the minecart server using https://api.mcsrvstat.us/
- Host: GitHub
- URL: https://github.com/makarasty/pingerminecraft
- Owner: makarasty
- License: mit
- Created: 2023-05-11T20:00:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T11:19:35.000Z (about 1 year ago)
- Last Synced: 2025-05-04T04:32:51.131Z (5 months ago)
- Topics: fetcher, minecraft, minecraft-server, ping, pinger, poster
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```js
const pingerMinecraft = require("pingerminecraft")const data = await pingerMinecraft('95.216.62.176:25565')
console.log(data)
```# Example 2: Then constructs
```js
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
```js
const pingerMinecraft = require("pingerminecraft")pingerMinecraft('95.216.62.176:25566', true)
.then(console.log)
.catch(console.error)
```