request-test-zzx
Version:
``` npm i zzx-request -g ```
31 lines (27 loc) • 589 B
Markdown
## 安装
```
npm i zzx-request -g
```
## 使用
使用 `zzx-get -h` 查看帮助手册
- -t 指定地址
- -n 指定请求类型 默认get
```
zzx-get -t http://api.w0824.com/api/getlunbo
{ testUrl: 'http://api.w0824.com/api/getlunbo' }
√ success
{
status: 0,
message: [
{
url: 'http://www.baidu.com',
img: 'http://test.w0824.com/banner9.png'
},
{ url: 'http://jd.com', img: 'http://test.w0824.com/banner10.jpg' },
{
url: 'https://www.tmall.com/',
img: 'http://test.w0824.com/banner11.jpg'
}
]
}
```