A promise-based ES6 Minecraft pinger in Node.js
npm i pingmc
import { PingMC } from "pingmc"; // ES6
// OR
const { PingMC } = require("pingmc"); // ES5
new PingMC("mc.hypixel.net")
.ping()
.then((data) => console.log(data))
.catch((error) => console.log(error))