# revolt

> A reactive, pipelined HTTP client.

Latest version **1.0.4** (published 2017-11-06) · MIT license · 0 weekly downloads

## Install

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

## 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 | 1.0.4 |
| Published | 2017-11-06 |
| First published | 2014-11-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Kevin Swiber |
| Maintainers | kevinswiber, mdobs |
| Keywords | http, rx, reactive, client |

## Links

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

## Dependencies (2)

- [ws](https://npm.io/package/ws.md) ^0.5.0
- [rxjs](https://npm.io/package/rxjs.md) ^5.5.2

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2017-11-06
- 1.0.3 — 2017-11-04
- 1.0.2 — 2017-11-03
- 1.0.1 — 2017-11-02
- 1.0.0 — 2017-11-02
- 0.9.0 — 2015-04-13
- 0.8.0 — 2015-03-24
- 0.7.0 — 2015-03-05
- 0.6.0 — 2015-02-26
- 0.5.0 — 2014-12-01
- 0.4.0 — 2014-12-01
- 0.3.0 — 2014-12-01
- 0.2.0 — 2014-11-25
- 0.1.0 — 2014-11-25
- 0.0.0 — 2014-11-25

## README

# revolt

A reactive, pipelined HTTP client.

* Add common request/response pipeline handlers.
* Use reactive programming to consume responses.

## Install

```
npm install revolt
```

## Example

```js
var revolt = require('../revolt');

var client = revolt()
  .use(function(handle) {
    handle('request', function(pipeline) {
      return pipeline.map(function(env) {
        var auth = new Buffer('user:password').toString('base64');
        env.request.headers['authorization'] = 'Basic ' + auth;

        return env;
      });
    });
  });

client
  .get('http://localhost:8082')
  .flatMap(function(env) {
    return revolt.buffer(env.response)
      .map(function(data) {
        env.response.body = data.toString();
        return env;
      });
  })
  .subscribe(function(env) {
    console.log(env.response.body);
  });
```

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