# axios-fetcher

> A demo package that allows you to fetch data with axios.

Latest version **1.0.2** (published 2023-08-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install axios-fetcher
pnpm add axios-fetcher
yarn add axios-fetcher
bun add axios-fetcher
```

## 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 | 1.0.2 |
| Published | 2023-08-01 |
| First published | 2023-08-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Lucas Erlacher |
| Maintainers | lucaserly |
| Keywords | axios, fetcher |

## Links

- npm: https://www.npmjs.com/package/axios-fetcher
- npm.io page: https://npm.io/package/axios-fetcher

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^1.4.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

- 1.0.2 (latest) — 2023-08-01
- 1.0.1 — 2023-08-01

## README

# axios-fetcher

## Gettin started

1. Install the package

```
npm i axios-fetcher
```

2. How to use it in your file (ex: paste it in an index.js file and then run node index.js):

```
const { axiosFetcher } = require('axios-fetcher');

const asyncFunction = async () => {
  const yourToken = '........';
  const requestOptions = {
    url: 'your url',
    method: 'POST',
    headers: { 'content-type': 'application/json', Authorization: `Bearer ${yourToken}` },
    data: raw,
    redirect: 'follow',
  };

  const response = await axiosFetcher(requestOptions);
};

asyncFunction();
```

## Built with

- [Node.js](https://nodejs.org/en)
- [Axios](https://axios-http.com/docs/intro)

## Company

IP Pilot:

- [Website](https://www.ip-pilot.com/en/)
- [e-mail](info@ip-pilot.com)

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