All Projects → voronianski → psi-local-cli

voronianski / psi-local-cli

Licence: other
Google PageSpeed Insights CLI for localhost (via ngrok)

Programming Languages

javascript
184084 projects - #8 most used programming language

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].