A command line tool for following and showing HTTP redirects for a given
URL. Similar to the traceroute
unix tool.
Install globally as a CLI:
npm install http-traceroute -g
Install as a module:
npm install --save http-traceroute
http-traceroute [url]
var TraceRoute = require('http-traceroute')
var trace = new TraceRoute('https://github.com')
trace.on('readable', function () {
var hop = null
while (hop = this.read()) {
console.log(hop)
}
})
trace.on('error', function () {})
trace.on('end', function () {})
MIT