network-inspector
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i network-inspector

Weekly Downloads

15

Version

0.1.0

License

MIT

Unpacked Size

14.8 MB

Total Files

341

Last publish

Collaborators

  • ncbql