@line/headless-inspector-core
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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 target Event name Timing
Console consoleAPIHasBeenCalled When console API was called
Network networkRequestHasBeenMade when page is about to send HTTP request
Network networkRequestHasSucceeded When HTTP response is available
DOM TBD TBD
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');

Readme

Keywords

none

Package Sidebar

Install

npm i @line/headless-inspector-core

Weekly Downloads

1,982

Version

1.0.2

License

Apache-2.0

Unpacked Size

18.5 kB

Total Files

22

Last publish

Collaborators

  • odanado
  • kazuma0129
  • okamoto.takuya
  • sugarshin
  • linecorp