šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

@line/headless-inspector-core

Package Overview
Dependencies
Maintainers
5
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

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.

1.0.2
latest
Source
npm
Version published
Weekly downloads
4.3K
18.39%
Maintainers
5
Weekly downloads
Ā 
Created
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

Package last updated on 09 May 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