@calvin_von/proxy-plugin-monitor
v2.0.3
Published
A dalao-proxy plugin for request monitoring
Downloads
27
Maintainers
Readme
Proxy-plugin-monitor
A dalao-proxy plugin for request monitoring.
- 1.x version support [email protected]
- 2.x version support [email protected]
Usage
1. Global Install
Install dalao-proxy
cli first
npm install -g dalao-proxy
Add plugin
$ dalao-proxy plugin install -g @calvin_von/proxy-plugin-monitor
Add config
{
"monitor": {
"open": true,
"cleanOnRestart": false,
"disableLogger": true,
"maxRecords": 100,
"editor": "code"
}
}
open
: Auto open monitor page when start. (Default:true
)disableLogger
: Enable disable proxy logger. (Default:true
)cleanOnRestart
: Auto clean monitor data list when restart. (Default:false
)maxRecords
: Set maximum records item. (Default:100
)editor
: Default code editor. (Default:code
)
Start proxy
$ dalao-proxy start
> [monitor] attached at http://localhost:40001
> dalao has setup the Proxy for you 🚀
> dalao is listening at http://localhost:8000
2. Local Install
$ npm install -D dalao-proxy
$ dalao-proxy plugin install -D @calvin_von/proxy-plugin-monitor
Generate config json file
$ npx dalao-proxy init -f
Add plugin in config json file
{
"plugins": [
"@calvin_von/proxy-plugin-monitor"
]
}
package.json
{
"scripts": {
"proxy": "dalao-proxy start"
}
}
Start proxy
$ npm run proxy
Screenshots
more docs about dalao-proxy
, see CalvinVon/dalao-proxy on Github.