# arequest

> Promise base request module

Latest version **3.0.2** (published 2019-02-24) · MIT license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2019-02-24 |
| First published | 2016-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 2 |
| Unpacked size | 12.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Taka Okunishi |
| Maintainers | okunishinishi |
| Keywords | promise, request |

## Links

- npm: https://www.npmjs.com/package/arequest
- Repository: https://github.com/a-labo/arequest
- Homepage: https://github.com/a-labo/arequest#readme
- Issues: https://github.com/a-labo/arequest/issues
- npm.io page: https://npm.io/package/arequest

## Dependencies (2)

- [argx](https://npm.io/package/argx.md) ^4.0.0
- [request](https://npm.io/package/request.md) ^2.88.0

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 3.0.2 (latest) — 2019-02-24
- 3.0.1 — 2018-09-04
- 3.0.0 — 2017-09-17
- 2.0.7 — 2016-08-02
- 2.0.6 — 2016-07-27
- 2.0.5 — 2016-07-12
- 2.0.4 — 2016-07-08
- 2.0.3 — 2016-07-08
- 2.0.2 — 2016-07-05

## README

arequest
==========

<!---
This file is generated by ape-tmpl. Do not update manually.
--->

<!-- Badge Start -->
<a name="badges"></a>

[![Build Status][bd_travis_shield_url]][bd_travis_url]
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[![JS Standard][bd_standard_shield_url]][bd_standard_url]

[bd_repo_url]: https://github.com/a-labo/arequest
[bd_travis_url]: http://travis-ci.org/a-labo/arequest
[bd_travis_shield_url]: http://img.shields.io/travis/a-labo/arequest.svg?style=flat
[bd_travis_com_url]: http://travis-ci.com/a-labo/arequest
[bd_travis_com_shield_url]: https://api.travis-ci.com/a-labo/arequest.svg?token=
[bd_license_url]: https://github.com/a-labo/arequest/blob/master/LICENSE
[bd_codeclimate_url]: http://codeclimate.com/github/a-labo/arequest
[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/a-labo/arequest.svg?style=flat
[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/a-labo/arequest.svg?style=flat
[bd_gemnasium_url]: https://gemnasium.com/a-labo/arequest
[bd_gemnasium_shield_url]: https://gemnasium.com/a-labo/arequest.svg
[bd_npm_url]: http://www.npmjs.org/package/arequest
[bd_npm_shield_url]: http://img.shields.io/npm/v/arequest.svg?style=flat
[bd_standard_url]: http://standardjs.com/
[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg

<!-- Badge End -->


<!-- Description Start -->
<a name="description"></a>

Promise base request module

<!-- Description End -->


<!-- Overview Start -->
<a name="overview"></a>



<!-- Overview End -->


<!-- Sections Start -->
<a name="sections"></a>

<!-- Section from "doc/guides/01.Installation.md.hbs" Start -->

<a name="section-doc-guides-01-installation-md"></a>

Installation
-----

```bash
$ npm install arequest --save
```


<!-- Section from "doc/guides/01.Installation.md.hbs" End -->

<!-- Section from "doc/guides/02.Usage.md.hbs" Start -->

<a name="section-doc-guides-02-usage-md"></a>

Usage
---------

```javascript
'use strict'

const assert = require('assert')
const arequest = require('arequest')

// Send request
arequest({
  url: 'http://example.com',
  method: 'GET'
}).then((res) => {
  assert.equal(res.statusCode, 200)
  console.log(res.body)
  /* ... */
})

// Define custom request to handle sessions
let myRequest = arequest.create({
  jar: true
})

myRequest({
  url: 'http://example.com/sign',
  form: { /* ... */ }
}).then(() => {
  /* ... */
})

```


<!-- Section from "doc/guides/02.Usage.md.hbs" End -->


<!-- Sections Start -->


<!-- LICENSE Start -->
<a name="license"></a>

License
-------
This software is released under the [MIT License](https://github.com/a-labo/arequest/blob/master/LICENSE).

<!-- LICENSE End -->


<!-- Links Start -->
<a name="links"></a>

Links
------

+ [a-labo][a_labo_url]

[a_labo_url]: https://github.com/a-labo

<!-- Links End -->

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