# maproxy

> A caching proxy with result parsing.

Latest version **0.0.1** (published 2014-11-29) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-11-29 |
| First published | 2014-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dominykas Blyžė, InsideWarehouse |
| Maintainers | dymonaz |
| Keywords | proxy, cache, crawl, crawler |

## Links

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

## Dependencies (2)

- [hapi](https://npm.io/package/hapi.md) ^8.0.0-rc5
- [nipple](https://npm.io/package/nipple.md) ^2.5.6

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-11-29

## README

# maproxy

A caching proxy with result parsing.

## Usage

This is not documentation of how it works. This is the idea of how it might work in the future:

```js
var Maproxy = require("maproxy");

var server = Maproxy.create({
	port: 3128,
	cache: {
		expiresIn: 10 * 1000
	},
	cacheStrategy: require("catbox-redis")
});

server.registerParser("google.com", function (url, payload, callback) {
	if (false) {
		callback(new Error("Not implemented");
	} else {
		callback(null, { title: "Google", "anything": "something" });
	}
});

server.start();
```

And then just `http_proxy=http://127.0.0.1:3128 curl -v http://www.google.com`

## Todo
* [ ] SSL
* [ ] Error handling
* [ ] HTTP error handling
* [ ] Tests
* [ ] Docs

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