Socket
Socket
Sign inDemoInstall

@hippy/devtools-protocol

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hippy/devtools-protocol

The DevTools Protocol JSON


Version published
Weekly downloads
9
decreased by-52.63%
Maintainers
3
Weekly downloads
 
Created
Source

Introduction

Chrome Devtools Protocol based on JSON-RPC. You can view verbose protocol on website

this repo is fork from ChromeDevTools/devtools-protocol and add some custom debug protocol of Hippy framework

Hot to start

add custom protocol

  1. modify JSON protocol definition in ./json/tdf_protocol.json

  2. auto generate all typescript declaration, docs: npm run build

  3. preview devtools protocol site on page: npm run site:serve

use by other project

npm i @hippy/devtools-protocol

usage: add reference to the typescript declaration of @hippy/devtools-protocol by:

// file: index.d.ts
/// <reference types="@hippy/devtools-protocol" />
registerModuleCallback(TdfCommand.TDFInspectorDumpDomTree, (error, msg) => {
  const { itree } = msg as ProtocolTdf.TDFInspector.DumpDomTreeResponse;
  this.handleReceiveDomTree(itree);
});

FAQs

Package last updated on 20 Oct 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc