# caching-proxy2

> A Proxy server that caches responses in filesystem that really works

Latest version **0.1.1** (published 2019-02-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install caching-proxy2
pnpm add caching-proxy2
yarn add caching-proxy2
bun add caching-proxy2
```

Provides the command `caching-proxy2`.

## 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 | 2019-02-23 |
| First published | 2019-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 13.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sebastian Gurin |
| Maintainers | cancerberosgx |
| Keywords | proxy, server, cache, http, https, slow connection |

## Links

- npm: https://www.npmjs.com/package/caching-proxy2
- Repository: https://github.com/cancerberoSgx/caching-proxy
- Homepage: https://github.com/cancerberoSgx/caching-proxy#readme
- Issues: https://github.com/cancerberoSgx/caching-proxy/issues
- npm.io page: https://npm.io/package/caching-proxy2

## Dependencies (5)

- [express](https://npm.io/package/express.md) ^4.16.4
- [yargs-parser](https://npm.io/package/yargs-parser.md) ^13.0.0
- [filenamify-url](https://npm.io/package/filenamify-url.md) ^1.0.0
- [express-http-proxy](https://npm.io/package/express-http-proxy.md) ^1.5.1
- [@sindresorhus/fnv1a](https://npm.io/package/@sindresorhus/fnv1a.md) ^1.0.0

## 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.1.1 (latest) — 2019-02-23
- 0.1.0 — 2019-02-23

## README

# Caching Proxy

A Proxy server that caches responses in filesystem that really works

 * Need to test against a remote API and have a slow connections?
 * The service has no CORS enabled so you can query it from localhost?

Solution: **Cache it in a local server**

# Install

```sh
npm install caching-proxy2
```

or globally:

```sh
npm install -g caching-proxy2
```

# Usage

Imaging you are consuming an API like http://api.server.com/v2/sources/19/series?format=json and now want to cache all requests there locally or just enable CORS. Start caching-server, use the same urls, just change the server name;

```sh
npx caching-proxy2 --hostName "http://api.server.com" --port 9000
```

And now instead of consuming http://api.server.com/v2/sources/19/series?format=json, point your client to http://localhost:9000/v2/sources/19/series?format=json

and voila!

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