web-tracer
Web tracer/debugger
Last updated 5 years ago by runk .
MIT · Original npm · Tarball · package.json
$ cnpm install web-tracer 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.6                                ...           latest (5 years ago)

7 Versions

  • 0.1.6                                ...           5 years ago
  • 0.1.5                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 3
Last Day 1
Last Week 1
Last Month 2
Dependencies (5)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |