Socket
Socket
Sign inDemoInstall

@line/headless-inspector-core

Package Overview
Dependencies
0
Maintainers
5
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @line/headless-inspector-core

The core implementation of Headless Inspector. The `inspector` object emits various debug events, but there is no DevTool FrontEnd.


Version published
Weekly downloads
2K
decreased by-11.24%
Maintainers
5
Install size
18.1 kB
Created
Weekly downloads
 

Readme

Source

headless-inspector-core

The core implementation of Headless Inspector. The inspector object emits various debug events, but there is no DevTool FrontEnd.

Debug Events

Debug targetEvent nameTiming
ConsoleconsoleAPIHasBeenCalledWhen console API was called
NetworknetworkRequestHasBeenMadewhen page is about to send HTTP request
NetworknetworkRequestHasSucceededWhen HTTP response is available
DOMTBDTBD
import HeadlessInspector from '@line/headless-inspector-core';

const inspector = new HeadlessInspector();
inspector.on(
  'consoleAPIHasBeenCalled',
  ({ argumentsList, type, timestamp }) => {
    // argumentsList: ["hoge"]
    // type: "log"
  }
);
inspector.enable();

console.log('hoge');

FAQs

Last updated on 09 May 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc