# httpify

> Http in Node and Browserify, simply.

Latest version **3.0.0** (published 2015-11-05) · MIT license · 0 weekly downloads

## Install

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

## 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 | 3.0.0 |
| Published | 2015-11-05 |
| First published | 2014-01-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Scott Corgan |
| Maintainers | scottcorgan |
| Keywords | $http, browserify, angular, request, xhr |

## Links

- npm: https://www.npmjs.com/package/httpify
- Repository: https://github.com/scottcorgan/httpify
- Homepage: https://github.com/scottcorgan/httpify#readme
- Issues: https://github.com/scottcorgan/httpify/issues
- npm.io page: https://npm.io/package/httpify

## Dependencies (2)

- [xhr](https://npm.io/package/xhr.md) ^2.1.0
- [request](https://npm.io/package/request.md) ^2.65.0

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

- 3.0.0 (latest) — 2015-11-05
- 2.0.0 — 2015-09-15
- 1.0.0 — 2014-10-08
- 0.4.1 — 2014-05-28
- 0.4.0 — 2014-04-17
- 0.3.1 — 2014-04-03
- 0.3.0 — 2014-03-07
- 0.2.3 — 2014-03-05
- 0.2.2 — 2014-03-05
- 0.2.1 — 2014-03-05
- 0.2.0 — 2014-03-05
- 0.0.0 — 2014-01-18

## README

# httpify

Http in the browser and Node.js with no hassle.

The beauty of this module is that it handles all browserify configurations for which module to load for server or browser.
 
## Install
 
```
npm install httpify --save
```
 
## Usage

When using with Browserify, this module returns a shimmed version of the [xhr](https://www.npmjs.org/package/xhr) module. When using with Node, it returns the raw [request](https://www.npmjs.org/package/request) module.

```js
var request = require('httpify')

var req = request({
  url: 'http://somewhere.com',
  method: 'GET',
  type: 'json'
}, function (err, response, body) {
  // Do stuff
})
```

See the documentation for [xhr](https://www.npmjs.org/package/xhr) and [request](https://www.npmjs.org/package/request) for a complete list of options.

## TODO

* add support for Angular
* add more robust Browserify bundle/transform support

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