https://github.com/lovetingyuan/node-gtmetrix
test the speed and performance of your site via CLI, based on https://gtmetrix.com/
https://github.com/lovetingyuan/node-gtmetrix
Last synced: 4 days ago
JSON representation
test the speed and performance of your site via CLI, based on https://gtmetrix.com/
- Host: GitHub
- URL: https://github.com/lovetingyuan/node-gtmetrix
- Owner: lovetingyuan
- License: mit
- Created: 2016-06-27T18:25:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-09T12:31:31.000Z (over 8 years ago)
- Last Synced: 2025-04-01T17:11:53.082Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## node-gtmetrix
test the speed and performance of your site, based on https://gtmetrix.com/
[](https://www.npmjs.com/package/node-gtmetrix)
[](https://david-dm.org/lovetingyuan/node-gtmetrix)### install
`npm install -g node-gtmetrix`
### usage
```
Usage: gtmetrix [options]Test local site performance and show the result in the browser or a pdf file
Options:
-h, --help output usage information
-V, --version output the version number
-r, --remote will test the given [url]
-p, --port [port] will test http://localhost:[port]
-d, --dir [dirname] will serve from [dirname] as a http root path and do test
-b, --browser show the reporter in default browser
-f, --pdf [output_path] download and save the reporter pdf file to [output_path] and open it acquiescently
-n, --no-open do not open browser or pdf automatically, used with option '-p'
```### example
* `gtmetrix -r https://google.com -f perf_google` // will test google.com and save the report as a pdf file to ./pref_google
* `gtmetrix -d public -b` // will start a http server at public directory and show the report in browser
* `gtmetrix -p 8080 -fn` // will test http://127.0.0.1:8080 and just download the report pdf file to current path### license
MIT