Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-28T12:08:50.000Z (over 4 years ago)
- Last Synced: 2024-07-10T18:52:04.619Z (3 months ago)
- Language: JavaScript
- Size: 53.7 KB
- Stars: 58
- Watchers: 4
- Forks: 9
- 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.![screen shot 2016-02-22 at 12 43 13](https://cloud.githubusercontent.com/assets/10602/13217317/ec317342-d961-11e5-9810-9773569387e0.png)
[![Build status](https://travis-ci.org/watson/http-traceroute.svg?branch=master)](https://travis-ci.org/watson/http-traceroute)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](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