Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

occanowey/mc-ping-promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

mc-ping-promise

A promise based Minecraft ping library.

Example usage

Using promises:

const mcping = require( 'mc-ping-promise' );

mcping( 'example.com', 25565 )
   .then( data => console.log( data ) )
   .catch( err => console.log( err ) );

Using async/await:

const mcping = require( 'mc-ping-promise' );

try {
   let data = await mcping( 'example.com', 25565 );

   console.log( data );
} catch( err ) {
   console.log( err );
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published