Coder Social home page Coder Social logo

parallelv2 / node-network-devtools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grinzero/node-network-devtools

0.0 0.0 0.0 1.11 MB

Inspecting Node.js's Network with Chrome DevTools✨

Home Page: https://grinzero.github.io/node-network-devtools/

License: GNU Affero General Public License v3.0

Shell 0.47% JavaScript 15.03% TypeScript 84.13% SCSS 0.37%

node-network-devtools's Introduction


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.

🎮 TODO

  • HTTP/HTTPS
    • req/res headers
    • payload
    • json str response body
    • binary response body
    • stack follow
      • show stack
      • click to jump
  • WebSocket
    • messages
    • payload
    • ...
  • Compatibility
    • commonjs
    • esmodule

👀 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. Config

Add this code to your .gitignore file.

request-center.lock

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()

📚 Documentation

If you encounter any problems, you can try cleaning the request-center.lock file

Visitors

node-network-devtools's People

Contributors

grinzero avatar turbobot-temp avatar causemylove avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.