ch-go
v1.0.4
Published
A powerful CLI utility tool for website performance analysis
Maintainers
Readme
ch-go
Feature
- 获取网站性能数据,结合代码给出针对性优化建议
- 支持分析移动端、pc端website
- api可配置化
Install
npm install -g ch-go
or
pnpm add -g ch-go
Basic Usage
ch-go analyze https://m.58.com -d "mobile"
or
ch-go batchAnalyze https://baidu.com -d "pc"
Options
- -d --device 设备类型 pc|mobile
- -k --key 模型ky
- -u --url 模型api
Tip
模型key、api 可通过显示命令传入也可在项目内创建ch-go.config.json
// ch-go.config.json
{
"KEY":"xxxxxxxxxxxx",
"URL":"xxxxxxxxxxxxxxxxxxxxxxxxxx",
// 批量检测时写入页面地址
"pageList": [],
// 需要鉴权token的站点 配置auth
"auth":{
"key":"xxxxx",
"domain":"xxxxx",
"value":"xxxxx"
},
//接入飞书文档api自动写入
"docID": "xxxxx",
"lark_app_id": "xxxxx",
"lark_app_secret": "xxxxxx"
}
