Skip to content

A npm Package who interacting with the mcsrvstat.us API.

License

Notifications You must be signed in to change notification settings

ChokoJoestar/mcsrvstat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node MCSrvStat

npm dependents npm download npm license npm types

github release github issues github commit

Table of Contents

Install

With NPM

# Locally
npm install -D mcsrvstat

# Or globally
npm install -g mcsrvstat

With YARN

# Locally
yarn add -D mcsrvstat

# Or globally
yarn add -g mcsrvstat

Example

Java Server

import { Status } from "mcsrvstat";

const serv = new Status().getJavaStatus("GommeHD.net");
serv.then(GommeHD => {
   console.log(GommeHD.version) // Return "1.8.x-1.20.x"
})

Bedrock Server

import { Status } from "mcsrvstat";

const serv = new Status().getBedrockStatus("135.125.105.65:19132");
serv.then(HiveMC => {
   console.log(HiveMC.players.max) // Return 100001
})

Author

About

A npm Package who interacting with the mcsrvstat.us API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published