@29ways/fewt 中文文档教程

发布于 6年前 浏览 29 项目主页 更新于 3年前

fewt

版本 下载/周License

一个简单的命令,使用 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

OptionDetails
-uRequired. Use this to specify the URLs to test
-bReport in bytes rather than KB.
--csvOutput results in CSV format. This avoids truncation of long URLs and makes for easy pasting into a spreadsheet.

使用 oclif

fewt

VersionDownloads/weekLicense

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

OptionDetails
-uRequired. Use this to specify the URLs to test
-bReport in bytes rather than KB.
--csvOutput results in CSV format. This avoids truncation of long URLs and makes for easy pasting into a spreadsheet.

Built using oclif

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文