# httpplease-promises

> A plugin that adds promise support to httpplease

Latest version **0.3.0** (published 2014-09-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install httpplease-promises
pnpm add httpplease-promises
yarn add httpplease-promises
bun add httpplease-promises
```

## 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.3.0 |
| Published | 2014-09-19 |
| First published | 2014-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Matthew Dapena-Tretter |
| Maintainers | matthewwithanm, lettertwo |
| Keywords | xhr, request, http, XMLHttpRequest, isomorphic, promises |

## Links

- npm: https://www.npmjs.com/package/httpplease-promises
- Repository: https://github.com/matthewwithanm/httpplease-promises
- Issues: https://github.com/matthewwithanm/httpplease-promises/issues
- npm.io page: https://npm.io/package/httpplease-promises

## 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

- 0.3.0 (latest) — 2014-09-19
- 0.2.3 — 2014-05-05
- 0.2.2 — 2014-05-05
- 0.2.1 — 2014-05-05
- 0.2.0 — 2014-05-05
- 0.1.0 — 2014-05-05

## README

httpplease-promises
===================

A plugin that adds promise support to [httpplease].


Installation
------------

[node], [browserify] and [webpack] users:

`npm install httpplease-promises`

[Bower] users:

`bower install httpplease-promises`


Usage
-----

```javascript
var httpplease = require('httpplease'),
    promises = require('httpplease-promises'),
    http = httpplease.use(promises());

http
    .get('http://example.com')
    .then(function (res) {
        console.log(res.body); // or whatever.
    });
```

Alernatively, AMD users can use `define` and script tag users can use
`window.httppleasepromises`.

By default, native Promises will be used. If you want to provide a different
implementation (which may be necessary depending on the environments you want to
support), pass it in:

```javascript
var httpplease = require('httpplease'),
    promises = require('httpplease-promises'),
    Promise = require('bluebird'),
    http = httpplease.use(promises(Promise));
```

[httpplease]: https://github.com/matthewwithanm/httpplease.js
[node]: http://nodejs.org
[browserify]: http://browserify.org
[webpack]: http://webpack.github.io
[Bower]: http://bower.io

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