@line/headless-inspector
v1.0.2
Published
## Getting Started
Downloads
13,794
Keywords
Readme
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.