# supertest-with-proxy

> SuperAgent driven library for testing HTTP servers

Latest version **5.0.2** (published 2020-05-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install supertest-with-proxy
pnpm add supertest-with-proxy
yarn add supertest-with-proxy
bun add supertest-with-proxy
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.2 |
| Published | 2020-05-02 |
| First published | 2019-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 3 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | TJ Holowaychuk |
| Maintainers | tauheedkhan |
| Keywords | superagent, supertest proxy, request, tdd, bdd, http, test, testing |

## Links

- npm: https://www.npmjs.com/package/supertest-with-proxy
- Repository: https://github.com/soniajasuja/supertest
- Homepage: https://github.com/soniajasuja/supertest#readme
- Issues: https://github.com/soniajasuja/supertest/issues
- npm.io page: https://npm.io/package/supertest-with-proxy

## Dependencies (3)

- [methods](https://npm.io/package/methods.md) ^1.1.2
- [superagent](https://npm.io/package/superagent.md) ^3.8.3
- [superagent-proxy](https://npm.io/package/superagent-proxy.md) ^2.0.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 5.0.2 (latest) — 2020-05-02
- 5.0.1 — 2019-07-19
- 5.0.0 — 2019-07-17
- 4.0.3 — 2019-07-17
- 4.0.2 — 2019-07-17

## README

# SuperTest Proxy Solution



## About

This module is proxy solution for supertest

## Getting Started

Install SuperTest as an npm module and save it to your package.json file as a development dependency:

```bash
npm install supertest-with-proxy --save-dev
```

  Once installed it can now be referenced by simply calling ```require('supertest-with-proxy');```

## Proxy Example



```js
const request = require('supertest-with-proxy');
const express = require('express');

const app = express();

app.get('/user', function(req, res) {
  res.status(200).json({ name: 'john' });
});

request(app)
  .get('/user')
  .proxy('http://example.com')
  .expect('Content-Type', /json/)
  .expect('Content-Length', '15')
  .expect(200)
  .end(function(err, res) {
    if (err) throw err;
  });
```

For complete documentation, refer [supertest](https://github.com/tauheedkhan/supertest)

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