network-inspector

Debugging your Node.js network requests, and replay them.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
network-inspector
700.1.06 years ago6 years agoMinified + gzip package size for network-inspector in KB

Readme

Node Network Inspector
Debugging your Node.js network requests, and replay them.

Usage

npm i network-inspector

Start your app

node -r network-inspector/lib/open your-app.js

Or with environment variables:
INSPECTOR_PORT=8000 INSPECTOR_NO_LOG=true INSPECTOR_OPEN=false node -r network-inspector/lib/open your-app.js

Files

  • network-inspector/lib/install: Just hook request api.
  • network-inspector/lib/server: Hook request api and start server.
  • network-inspector/lib/open: Start server and open your browser.

Screenshots

0
1
2
3

API

import Inspector from 'network-inspector'

Inspector.install() // return event-bus
Inspector.startServer(23333/* port */, false/* noLog */, true/* open browser */) // return [http server, express instance, socket.io instance]

Or:
import Inspector from 'network-inspector/lib/install'
import Inspector from 'network-inspector/lib/server'
import Inspector from 'network-inspector/lib/open'

Author

Shirasawa

About public/img/icons

They were copied from vscode-material-icon-theme.
License: MIT.
Thanks!

License

MIT