# liveproxy

> debugging proxy for web developers base on NodeJS

Latest version **0.1.4** (published 2014-12-02) · 0 weekly downloads

## Install

```sh
npm install liveproxy
pnpm add liveproxy
yarn add liveproxy
bun add liveproxy
```

Provides the command `liveproxy`.

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2014-12-02 |
| First published | 2014-11-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.x |
| Dependencies | 11 |
| Known vulnerabilities | 0 (+4 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | rehorn |
| Keywords | proxy, debug, web, develop, gulp, grunt |

## Links

- npm: https://www.npmjs.com/package/liveproxy
- Repository: https://github.com/rehorn/liveproxy
- Issues: https://github.com/rehorn/liveproxy/issues
- npm.io page: https://npm.io/package/liveproxy

## Dependencies (11)

- [mime](https://npm.io/package/mime.md) ^1.2.11
- [vhost](https://npm.io/package/vhost.md) ^3.0.0
- [colors](https://npm.io/package/colors.md) ^1.0.3
- [express](https://npm.io/package/express.md) ^4.10.4
- [chokidar](https://npm.io/package/chokidar.md) ^0.11.1
- [optimist](https://npm.io/package/optimist.md) ^0.6.1
- [socket.io](https://npm.io/package/socket.io.md) ^1.2.1
- [http-proxy](https://npm.io/package/http-proxy.md) ^1.7.0
- [underscore](https://npm.io/package/underscore.md) ^1.7.0
- [body-parser](https://npm.io/package/body-parser.md) ^1.9.3
- [http-proxy-agent](https://npm.io/package/http-proxy-agent.md) ^0.2.6

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2014-12-02
- 0.1.3 — 2014-12-01
- 0.1.2 — 2014-12-01
- 0.1.0 — 2014-11-30

## README

liveproxy
=========

LiveProxy is a cli only &amp; lite version of livepool for simple local replacement and proxy development scenes. 

### useage
```
var liveproxy = require('liveproxy');
liveproxy({
    config: './test/route.example.js'
});
```

### config example.js
```
var express = require('express');

var router1 = express.Router();
router1.get('/v1/post/:id', function(req, res, next) {
    res.send('hello!');
});

module.exports = {
    cwd: './test',
    proxyAgent: 'proxy.tencent.com:8080',
    handler: [{
        match: 'find.qq.com/index.html',
        action: './dist/'
    }, {
        match: 's.url.cn/qqfind/cdn/',
        action: './dist/'
    }],
    mocker: [{
        match: 'cgi.find.qq.com',
        action: router1
    }],
    router: [{
        match: 'find.qq.com/cgi-bin/',
        action: '-'
    }, {
        match: 'find.qq.com/',
        action: '10.12.23.156:8080'
    }],
    extender: [{
        match: 'find.qq.com/cgi-bin/',
        action: {
            func: 'delay',
            args: 5
        }
    }, {
        match: 'find.qq.com/',
        action: {
            func: 'addResponseHeader',
            args: ['powered', 'alloyteam']
        }
    }]
};
```

---
_Source: https://npm.io/package/liveproxy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
