Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/runk/web-tracer
Web tracer / debugger
https://github.com/runk/web-tracer
Last synced: about 1 month ago
JSON representation
Web tracer / debugger
- Host: GitHub
- URL: https://github.com/runk/web-tracer
- Owner: runk
- License: mit
- Created: 2015-03-26T00:53:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-16T01:58:06.000Z (over 9 years ago)
- Last Synced: 2024-10-14T00:32:06.210Z (2 months ago)
- Language: JavaScript
- Size: 164 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## web-tracer
Tiny tool that helps with debugging of remote services. It binds on externally visible hostname and logs
all HTTP(S) traffic it receives.### Installation
```
npm i web-tracer -g
```### Usage
```
Usage: web-tracer [options]Options:
-h, --help output usage information
-V, --version output the version number
-h, --host [name] Local host
-p, --port [number] Local port
-e, --external [subdomain] Custom subdomain name, e.g. foobar```
### Using programmatically
```
var webtracer = require('web-tracer')var tracer = webtracer({
external: 'mysubdomain', // to bind on https://mysubdomain.localtunnel.me/
port: 3000,
host: 'localhost',
onRequest: function(trace) {
console.log(trace)
}
}, function(err, tunnel) {
console.log('Tracer has started', err, tunnel)// Stopping after 60 seconds
setTimeout(function() { tunnel.close() }, 60000)
})// use `tracer.close()` as an alternative method to gracefully close the tunnel
```### License
MIT