1.0.0 • Published 7 years ago

psi-local-cli v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

psi-local-cli

Google PageSpeed Insights CLI for localhost projects via ngrok.

Install

npm i psi-local-cli -g

Examples

psi-local --port 8080
# will test http://localhost:8080 via ngrok tunnel
psi-local --port 8080 --route /signup
# will test http://localhost:8080/signup via ngrok tunnel
psi-local --port 8080 --nopsi
# will just create tunnel for http://localhost:8080 without calling PSI
# you can manually copy-paste generated ngrok url to PSI web interface

All psi-cli options are supported:

psi-local --port 8080 --strategy mobile
# will test http://localhost:8080 via ngrok tunnel and pass `strategy` to psi-cli

MIT Licensed