network-inspector
v0.1.0
Published
Debugging your Node.js network requests, and replay them.
Downloads
112
Maintainers
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
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
About public/img/icons
They were copied from vscode-material-icon-theme.
License: MIT.
Thanks!