An open API service indexing awesome lists of open source software.

https://github.com/3rd/devproxy


https://github.com/3rd/devproxy

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# devproxy

> WIP

## Usage

```
Usage: devproxy [options]

Options:
-c, --config config file (default: "config.js")
-p, --port custom proxy port
--chromium-binary specify chromium binary
-o, --open open url
-h, --help display help for command
```

## Configuration

```js
module.exports = {
open: "about:blank",
chromiumBinary: "google-chrome-beta",
rules: [
{
match: ({ url, method, hostname, path }) => {
return false;
},
beforeRequest: ({ id, url, method, hostname, path }) => ({}),
beforeResponse: (request, response) => {
// const { id, url, method, hostname, path} = request;
// const { id, statusCode, headers, body } = response;
return { statusCode: 200, body: "test" };
},
},
],
};
```