JSPM

node-icmp-traceroute

1.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q35802F
  • License MIT

Linux traceroute command implemented in node js to get coords of each URL

Package Exports

  • node-icmp-traceroute

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 (node-icmp-traceroute) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-ICMPTraceroute

NPM

Node.js wrapper around traceroute process to get coordinates of received hops

Install

npm install --save node-icmp-traceroute

Usage Example

const ping = require('../traceroute')

ping.createSession().traceRoute('google.com', (err, data) => {
  if (err) {
    if (err.name === 'DNSError') console.log('err = ', err.message)
  } else {
    console.log('[Inside app] data.latitude = ', data.latitude,
    ' data.longitude = ', data.longitude,
    ' data.source = ', data.source,
    ' data.target = ', data.target,
    ' status = ', data.status)
  }
})

Possible enhancements

  • Support for IP address as input to traceroute
  • IPv6 support