mc-server-status
Version:
Fetch the status of a Minecraft server.
30 lines (20 loc) • 723 B
Markdown
# Minecraft Server Status
[](https://www.npmjs.com/package/mc-server-status)
[](https://www.npmjs.com/package/mc-server-status)
A small utility and library for getting the description, player count
and ping of a Minecraft server.
## Usage
```bash
mc-status 2b2t.org
# with port
mc-status localhost 25565
# output json
mc-status --json <address>
```

You can also use it as a library:
```js
const { getStatus } = require("mc-server-status")
const status = await getStatus("2b2t.org")
console.log(status)
```