Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/janispritzkau/mc-server-status

A small utility for getting the description, player count and ping of a Minecraft server.
https://github.com/janispritzkau/mc-server-status

minecraft node nodejs ping query server status

Last synced: 3 days ago
JSON representation

A small utility for getting the description, player count and ping of a Minecraft server.

Awesome Lists containing this project

README

        

# Minecraft Server Status

[![npm](https://img.shields.io/npm/v/mc-server-status.svg)](https://www.npmjs.com/package/mc-server-status)
[![downloads](https://img.shields.io/npm/dm/mc-server-status.svg)](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


```

![Terminal output](https://gitlab.com/janispritzkau/mc-status/raw/master/terminal.png)

You can also use it as a library:

```js
const { getStatus } = require("mc-server-status")

const status = await getStatus("2b2t.org")
console.log(status)
```