JSPM

pinggo

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q38952F
  • License MIT

Ping average round trip times in milli-seconds

Package Exports

  • pinggo

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pinggo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pinggo

Ping average round trip times in milli-seconds

Install

$ npm install --save pinggo

Usage

import pinggo from 'pinggo'

const puts = (error, stdout, stderr) => console.log(`Your average ping is ${stdout}ms`)
pinggo('192.69.96.1', puts)
// => Your average ping is 20.080ms

API

pinggo(ip, cb)

ip

Type: string
Default: localhost
Optional

cb

Type: function

  • pinggo-cli — 📶 Check your ping before match making, don't play with lag

License

MIT © Bu Kinoshita