UNPKG

bedrock-api

Version:

A Node.js library to retrieve information about a Minecraft Bedrock Edition server using its IP address and port.

13 lines (11 loc) 261 B
const API = require('./../src/index'); const api = new API(); const ip = 'play.nethergames.org'; const port = 19132; api.ping(ip, port, function(err, res) { if(err) { console.error(err); } else { console.log(res); } });