@calvin_von/proxy-plugin-monitor

2.0.0 • Public • Published

Proxy-plugin-monitor

A dalao-proxy plugin for request monitoring.

version

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

preview

preview-2

more docs about dalao-proxy, see CalvinVon/dalao-proxy on Github.

Package Sidebar

Install

npm i @calvin_von/proxy-plugin-monitor

Weekly Downloads

8

Version

2.0.0

License

MIT

Unpacked Size

1.31 MB

Total Files

16

Last publish

Collaborators

  • calvin_von