You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

node-network-devtools

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-network-devtools

Inspecting Node.js's Network with Chrome DevTools

1.0.28
latest
Source
npmnpm
Version published
Weekly downloads
16K
0.08%
Maintainers
1
Weekly downloads
 
Created
Source


Node Network Devtools

🔮 Use chrome network devtool to debugger nodejs

🦎 Similar web crawler experience to browsers

⚙️ Powered by CDP

NodeJs Chrome TypeScript

English | 简体中文

📖 Introduction

As you can see, the node program opened with the --inspect option does not support network tags because it does not proxy user requests. Node network devtools is designed to address this issue by allowing you to debug requests made by nodejs using the network tab of Chrome devtools, making the debugging process equivalent to a web crawler experience in the browser.

Node v22.6.0 experimentally supports network debugging. This library supports use before node v22.6.0, but the specific supported versions are unknown.

🎮 Features

  • HTTP/HTTPS
    • req/res headers
    • payload
    • json str response body
    • binary response body
    • stack follow
      • show stack
      • click to jump
        • base
        • Sourcemap
  • WebSocket
    • messages
    • payload
    • headers
  • Compatibility
    • commonjs
    • esmodule
    • Bun
    • Deno -- Maybe nice to PR to Deno
  • Undici
    • undici.request
    • undici.fetch

👀 Preview

img

📦 Quick Start

1. Install

# npm
npm install node-network-devtools -D
# or pnpm
pnpm add node-network-devtools -D
# or yarn
yarn add node-network-devtools -D

2. Usage

Just add the following code to the entry file of your project.

import { register } from 'node-network-devtools'

process.env.NODE_ENV === 'development' && register()

Visitors

Keywords

node

FAQs

Package last updated on 19 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts