1
2
3
4
5
6
7
8
import * as ChromeLauncher from "npm:chrome-launcher"
ChromeLauncher.launch( {
startingUrl: "https://google.com",
chromeFlags: [ "--headless", "--disable-gpu" ],
} ).then( chrome => {
console.log( `Chrome debugging port running on ${chrome.port}` )
} )