# @stone-ton/axios-wrapper

> Axios wrapper with otlp

Latest version **1.0.5** (published 2023-11-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @stone-ton/axios-wrapper
pnpm add @stone-ton/axios-wrapper
yarn add @stone-ton/axios-wrapper
bun add @stone-ton/axios-wrapper
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-11-01 |
| First published | 2022-02-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 27.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Emerson Katsumi Matsumoto |
| Maintainers | stonemaistech |

## Links

- npm: https://www.npmjs.com/package/@stone-ton/axios-wrapper
- Repository: https://github.com/stone-ton/monorepo
- Homepage: https://github.com/stone-ton/monorepo/tree/main/packages/axios-wrapper#readme
- Issues: https://github.com/stone-ton/monorepo/issues
- npm.io page: https://npm.io/package/@stone-ton/axios-wrapper

## Recent versions

- 1.0.5 (latest) — 2023-11-01
- 1.0.4 — 2023-11-01
- 1.0.3 — 2023-11-01
- 1.0.2 — 2023-10-26
- 1.0.1 — 2023-09-05
- 1.0.0 — 2023-08-23
- 0.0.4 — 2023-04-26
- 0.0.3 — 2022-02-21
- 0.0.2 — 2022-02-17
- 0.0.1 — 2022-02-17

## README

# `axios-wrapper`

Lib para fazer wrapper do axios

## Usage

```javascript
import { AxiosRequestConfig } from 'axios'
import {
  axiosRequest
} from '@stone-ton/axios-wrapper'

interface FooInput {
  bar: string
}

interface Foo {
  id: string
  bar: string
}

const result = await axiosRequest<Foo, FooInput>({
  url: 'http://localhost:3000',
  method: 'POST',
  timeout: 3000,
  data: {
    bar: '🍌'
  }
})

// result = {
//   data: { id: '12':  bar: '🍌' }
// }
```

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