# coffee-http-proxy

> Simple HTTP proxy server module

Latest version **0.1.1** (published 2012-12-01) · 0 weekly downloads

## Install

```sh
npm install coffee-http-proxy
pnpm add coffee-http-proxy
yarn add coffee-http-proxy
bun add coffee-http-proxy
```

Provides the command `proxy`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2012-12-01 |
| First published | 2012-11-25 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | kaz080 |
| Maintainers | kaz080 |

## Links

- npm: https://www.npmjs.com/package/coffee-http-proxy
- Repository: https://github.com/kaz080/coffee-http-proxy
- npm.io page: https://npm.io/package/coffee-http-proxy

## Dependencies (2)

- [colors](https://npm.io/package/colors.md) ~0.6.0-1
- [optimist](https://npm.io/package/optimist.md) ~0.3.5

## Recent versions

- 0.1.1 (latest) — 2012-12-01
- 0.1.0 — 2012-12-01
- 0.0.2 — 2012-11-25
- 0.0.1 — 2012-11-25

## README

# CoffeeScript HTTP Proxy

Simple HTTP proxy server module.

The proxy module supports:

 - Proxy HTTP and HTTPS protocols
 - Proxying via proxy server
 - Customize behavior for each request
   (deny, change proxy, change host/port etc.)
 - Customize logging

This module just relay TCP connection according to HTTP Request.
Modules are written in [CoffeeScript](http://coffeescript.org/).
So proxy module itself (`src/proxy.coffee`) is small, about 120 lines.

## Usage

In CoffeeScript,

```coffeescript
proxy = require 'coffee-http-proxy'

server = proxy.createServer()

server.listen 8000, ->
  console.log 'Listening on port', 8000
```

In JavaScript,

```javascript
var proxy = require('coffee-http-proxy');

var server = proxy.createServer();

server.listen(8000, function() {
  console.log('Listening on port', 8000);
});
```

To start proxy server,

```bash
proxy [--port 8000] [--proxy host:port] [--verbose]
```

For more detail, see `src/simple-proxy.coffee`.

## Install

```bash
npm install coffee-http-proxy
```

# Development Environment

In the module directory,

- Install [grunt.js](https://github.com/gruntjs/grunt):
  `npm install -g grunt`
- Install development dependencies:
  `npm install --dev`
- Build and test:
  `grunt`
- Start watching code editing:
  `grunt watch`

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