pingerminecraft
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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

image

Example 1: Async Function

const pingerMinecraft = require("pingerminecraft")

const data = await pingerMinecraft('95.216.62.176:25565')

console.log(data)

Example 2: Then constructs

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

const pingerMinecraft = require("pingerminecraft")

pingerMinecraft('95.216.62.176:25566', true)
	.then(console.log)
	.catch(console.error)

Package Sidebar

Install

npm i pingerminecraft

Weekly Downloads

6

Version

2.0.1

License

MIT

Unpacked Size

5.61 kB

Total Files

8

Last publish

Collaborators

  • makarasty