https://github.com/watson/http-traceroute
A command line tool for following and showing HTTP redirects for a given URL
https://github.com/watson/http-traceroute
Last synced: 2 months ago
JSON representation
A command line tool for following and showing HTTP redirects for a given URL
- Host: GitHub
- URL: https://github.com/watson/http-traceroute
- Owner: watson
- License: mit
- Created: 2016-01-28T12:23:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-03-28T12:08:50.000Z (over 5 years ago)
- Last Synced: 2025-04-30T07:49:43.634Z (2 months ago)
- Language: JavaScript
- Size: 53.7 KB
- Stars: 60
- Watchers: 3
- Forks: 10
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# http-traceroute
A command line tool for following and showing HTTP redirects for a given
URL. Similar to the `traceroute` unix tool.
[](https://travis-ci.org/watson/http-traceroute)
[](https://github.com/feross/standard)## Installation
Install globally as a CLI:
```
npm install http-traceroute -g
```Install as a module:
```
npm install --save http-traceroute
```## CLI Usage
```
http-traceroute [url]
```## Module Usage
```js
var TraceRoute = require('http-traceroute')
``````js
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 () {})
```## License
MIT