Use Puppeteer to run Lighthouse audits.
npx litepup http://example.com > results.json
You can also install and run: npm i litepup
.
If you'd like pretty HTML output instead of the raw data: npx litepup --html http://example.com > results.html
.
If you have trouble running, make sure you have all required dependencies installed. See this list.
- Allow configuration of literally anything more than the url
- Batch audits (url lists)
- Docker image?
- Friendly CLI reporting (human readable)
- Easy to parse output for CI