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
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