@29ways/fewt 中文文档教程
fewt
一个简单的命令,使用 puppeteer 请求 URL 并计算下载的资源总量作为结果。
结果按资源类型分组。 默认值以 KB 为单位返回。
Example
fewt -u https://google.com
Url Html Num html Css Num css Js Num js Img Num img Fonts Num fonts All Num all
https://google.com 66.84 5 0.00 0 285.24 4 49.36 5 0.00 0 401.44 14
可以同时请求多个url
fewt -u https://google.com https://github.com
Url Html Num html Css Num css Js Num js Img Num img Fonts Num fonts All Num all
https://google.com 66.84 5 0.00 0 285.24 4 49.36 5 0.00 0 401.44 14
https://github.com 24.60 1 104.24 3 167.58 2 3331.59 40 314.28 2 3942.79 49
Options
Option | Details |
---|---|
-u | Required. Use this to specify the URLs to test |
-b | Report in bytes rather than KB. |
--csv | Output results in CSV format. This avoids truncation of long URLs and makes for easy pasting into a spreadsheet. |
fewt
A simple command that uses puppeteer to request a URL and calculates the total volume of resources downloaded as a result.
The results are grouped by resource type. By default values are returned in KB.
Example
fewt -u https://google.com
Url Html Num html Css Num css Js Num js Img Num img Fonts Num fonts All Num all
https://google.com 66.84 5 0.00 0 285.24 4 49.36 5 0.00 0 401.44 14
You can request multiple URLs at the same time
fewt -u https://google.com https://github.com
Url Html Num html Css Num css Js Num js Img Num img Fonts Num fonts All Num all
https://google.com 66.84 5 0.00 0 285.24 4 49.36 5 0.00 0 401.44 14
https://github.com 24.60 1 104.24 3 167.58 2 3331.59 40 314.28 2 3942.79 49
Options
Option | Details |
---|---|
-u | Required. Use this to specify the URLs to test |
-b | Report in bytes rather than KB. |
--csv | Output results in CSV format. This avoids truncation of long URLs and makes for easy pasting into a spreadsheet. |