Skip to content

Instantly share code, notes, and snippets.

View subhakant0's full-sized avatar

Subhakant Priyadarsan subhakant0

View GitHub Profile
@subhakant0
subhakant0 / lighthouse.js
Created March 16, 2020 18:38
Node js Lighthouse
const lighthouse = require('lighthouse');
const chromeLauncher = require('chrome-launcher');
const argv = require('yargs').argv;
const url = require('url');
const fs = require('fs');
const glob = require('glob');
const path = require('path');
const launchChromeAndRunLighthouse = (url) => {
return chromeLauncher.launch().then(chrome => {