Node.js wrapper around traceroute process to get coordinates of received hops
npm install --save node-icmp-traceroute
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)
}
})
- Support for IP address as input to traceroute
- IPv6 support