JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 80
  • Score
    100M100P100Q67523F
  • License MIT

Module for checking status of a Minecraft Server

Package Exports

  • mcstatus

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mcstatus) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

McStatus npm version number

Very simple npm package that gets the status of a Minecraft server.

Install

$ npm install mcstatus

Usage

To check the status of a Minecraft server just import the function, declare your options and then call checkStatus(). checkStatus() will return a Promise with a Status object.

Typescript:

import * as McStatus from 'mcstatus'

const options: McStatus.McServer = {
  host: 'mc.stephenduvall.me',
  port: 25565
}

McStatus.checkStatus(options).then(console.log)
// { ping: 501,
//   version: '1.14.4',
//   motd: 'Stephen\'s Christian Minecraft Server',
//   players: 0,
//   max_players: 20 }

Maintainer

Stephen DuVall

Future

  • Add the ability to pass hostname and port directly into the function without the McServer object
  • Add the ability to not give a port and default it to 25565