# @rapharacing/request

> Request wrapper for axios

Latest version **0.0.3** (published 2019-12-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @rapharacing/request
pnpm add @rapharacing/request
yarn add @rapharacing/request
bun add @rapharacing/request
```

## 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.0.3 |
| Published | 2019-12-03 |
| First published | 2019-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| Author | Rapha Racing |
| Maintainers | alex-windett, bbodien, jasonwhalley, john.kilpatrick |
| Keywords | npm, module, node, javascript, axois |

## Links

- npm: https://www.npmjs.com/package/@rapharacing/request
- Repository: https://gitlab.com/rapharacing/rapha-middleware/request
- Homepage: https://gitlab.com/rapharacing/rapha-middleware/request/blob/master/README.md
- Issues: https://gitlab.com/rapharacing/rapha-middleware/request/issues
- npm.io page: https://npm.io/package/@rapharacing/request

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.19.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2019-12-03
- 0.0.1 — 2019-11-18

## README

# Request

<h3 align="center">Axios wrapper for node to make a common request pattern</h3>

[![MIT License][license-image]][license-url]

## Installation

Using [npm](https://www.npmjs.com/):

```console
npm i @rapharacing/request --save
```

Using [Yarn](https://yarnpkg.com/):

```console
yarn add @rapharacing/request
```

## How to use

### JavaScript

If the project supports ECMAScript Modules, you can use the `import` syntax

```js
import request, { get, post, put, patch, remove } from "@rapharacing/request";

const requestUsers = async () => {
  const config = {
    method: "get",
    url: "/users"
  };

  const res = await request(config);
  const { data } = res.data;

  return data;
};

const requestUsers = async () => {
  const res = await get("/users");
  const { data } = res.data;

  return data;
};

const postUser = async user => {
  const res = await post("/user", user);
  const { data } = res.data;

  return data;
};
```

## License

Request is freely distributable under the terms of the [MIT license](https://gitlab.com/rapharacing/rapha-middleware/request/blob/develop/Licence).

[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: https://github.com/moment/moment/blob/develop/LICENSE.md

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