Sha256: e735aca8d0ec4110e23224a0d635b08d3a7ea08b4fd573e3d4021762b26352e0
Contents?: true
Size: 749 Bytes
Versions: 1
Compression:
Stored size: 749 Bytes
Contents
#!/usr/bin/env node 'use strict' /** * @fileoverview Script to launch a clean Chrome instance on-demand. * Assuming Lighthouse is installed globally or `npm link`ed, use via: * chrome-debug * Optionally pass additional flags and/or a URL * chrome-debug http://goat.com * chrome-debug --show-paint-rects */ require('./compiled-check.js')('chrome-launcher.js'); const args = process.argv.slice(2); let chromeFlags; let startingUrl; if (args.length) { chromeFlags = args.filter(flag => flag.startsWith('--')); startingUrl = args.find(flag => !flag.startsWith('--')); } const {launch} = require('./chrome-launcher'); launch({ startingUrl, chromeFlags, }).then(v => console.log(`✨ Chrome debugging port: ${v.port}`))
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dragonfly_chrome_headless-0.2.0 | node_modules/chrome-launcher/manual-chrome-launcher.js |