# redaxios

> The API from Axios, as a tiny abstraction over Fetch.

Latest version **0.5.1** (published 2022-08-18) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.1 |
| Published | 2022-08-18 |
| First published | 2020-01-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 76.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4879 |
| Author | Jason Miller |
| Maintainers | developit |
| Keywords | axios, fetch |

## Links

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

## 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.5.1 (latest) — 2022-08-18
- 0.5.0 — 2022-04-30
- 0.4.1 — 2021-02-03
- 0.4.0 — 2021-02-03
- 0.3.0 — 2020-07-23
- 0.2.0 — 2020-04-16
- 0.1.0 — 2020-01-16

## README

# redaxios

[Axios] has a great API that developers love. Redaxios provides that API in **800 bytes**, using native `fetch()`.

For those searching for ways to shave a few kilobytes off of their bundles, that's less than 1/5th of the size. This is made possible by using the browser's native [Fetch API][fetch], which is [supported in all modern browsers](https://caniuse.com/#feat=fetch) and polyfilled by most tools including Next.js, Create React App and Preact CLI.

### Can I just use Axios?

Yes! Axios is an excellent module and you should use it! Redaxios exists so that you can use that same API in cases where it's difficult to justify the dependency. Instead of having to choose between Axios and Fetch, Redaxios provides a middle-ground between the two.

[axios]: https://github.com/axios/axios
[fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch

### Usage

```js
import axios from 'redaxios';
// use as you would normally
```

Refer to the [Axios Documentation](https://github.com/axios/axios#axios-api).

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