1.0.4 • Published 3 years ago

autoagent v1.0.4

Weekly downloads
206
License
ISC
Repository
-
Last release
3 years ago

基于whistle启动自动代理

使用方式

const setAutoAgentRules = require('autoagent')
const path = require('path')
const agentName = 'sss'

setAutoAgentRules({
  regExpRules: `https:${agentName}.com http:127.0.0.1/main.js`, // 匹配规则的代理
  name: 'test', // whistle操作界面对应的名字
  shellContent: 'node ./a.js', // 代理后要执行的命令
  isOpenRegExpRule: true,
  isOpenResWirte: true, // 是否开启模拟接口接受数据的匹配规则
  resWriteRules: 
    {
      url: 'http:baidu1.com', // 接口重写对应的url
      pathData: path.resolve('./mockData/1.json') // 假数据,这里的pathData对应的是路径下的数据
    }
})
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago