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
Inspector.install // return event-busInspector.startServer23333/* port */, false/* noLog */, true/* open browser */ // return [http server, express instance, socket.io instance]
Or:
Author
public/img/icons
About They were copied from vscode-material-icon-theme.
License: MIT.
Thanks!