@bowtie/lighthouse
v1.0.1
Published
Lighthouse automated scans
Downloads
5
Keywords
Readme
@bowtie/lighthouse
Simple CLI tool to run basic lighthouse audits against a website
Installation
npm i -g @bowtie/lighthouse
Usage
Basic desktop audit (defaults)
# Default behavior will run desktop audit & JSON report to stdout
btlh https://example.com
Specify mobile audit
btlh https://example.com --mobile
Save report(s) to directory (instead of stdout
)
btlh https://example.com --output reports/example
See all available options in the --help
menu
@bowtie/lighthouse v1.0.0
Lighthouse automated scans
Usage
btlh [url] [options]
btlh -u [url] [options]
btlh --url [url] [options]
Examples
# Run default desktop audit:
btlh https://example.com
# Run mobile audit:
btlh https://example.com --mobile
# JSON "pretty" print out:
btlh https://example.com --pretty
# Save reports to dir:
btlh https://example.com --output /path/to/reports
# Save HTML report(s):
btlh https://example.com --html --output /path/to/reports
Available Options
--version Show current version
-h, --help Print this usage guide
-f, --force Ignore "throws" flag on logging methods
-q, --quiet Surpress all log output
-v, --verbose Show debugging output
-u, --url url Website URL to be audited
-m, --mobile Run mobile audit
-d, --desktop Run desktop audit
-p, --pretty Print "pretty" foramtted JSON output
-t, --html Save HTML reports (when --output specified)
-o, --output string Output directory (default: JSON to stdout)