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

1.0.2 • Public • Published

headless-inspector

Getting Started

# serve https://
$ npx @line/headless-inspector --https
$ npx @line/headless-inspector --key=path/to/key.pem --cert=/path/to/cert.pem
# serve http://
$ npx @line/headless-inspector

And then, add the following script tag to the debug target html file.

<script src="//{@line/headless-inspector server domain}:9222/headless-inspector.js"></script>

Your website automatically connects to the local server and send debug information. Each connection has an unique hi_id id. The local server logs the id and devtools URL when the connection from your website is established.

/@line/headless-inspector/

    Package Sidebar

    Install

    npm i @line/headless-inspector

    Weekly Downloads

    2,442

    Version

    1.0.2

    License

    Apache-2.0

    Unpacked Size

    36.5 kB

    Total Files

    14

    Last publish

    Collaborators

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