Skip to content

voronianski/psi-local-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Google PageSpeed Insights CLI for localhost (via ngrok)

Resources

Stars

Watchers

Forks

Packages

No packages published