# wx-axios

> Promise based HTTP client for the browser/node.js/wechat miniprogram

Latest version **0.0.7** (published 2018-10-18) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2018-10-18 |
| First published | 2018-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 303.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | SoloJiang |
| Maintainers | solojiang |
| Keywords | xhr, http, ajax, promise, node, wechat, miniprogram |

## Links

- npm: https://www.npmjs.com/package/wx-axios
- Repository: https://github.com/SoloJiang/axios
- Issues: https://github.com/SoloJiang/axios/issues
- npm.io page: https://npm.io/package/wx-axios

## Dependencies (2)

- [is-buffer](https://npm.io/package/is-buffer.md) ^2.0.2
- [follow-redirects](https://npm.io/package/follow-redirects.md) ^1.4.1

## 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.0.7 (latest) — 2018-10-18
- 0.0.6 — 2018-10-18
- 0.0.5 — 2018-10-17
- 0.0.4 — 2018-10-15
- 0.0.3 — 2018-10-10
- 0.0.2 — 2018-09-28
- 0.0.1 — 2018-09-28

## README

### Source

Forked from  [axios](https://github.com/axios/axios)

### Extra

support wechat miniprogram request

### Install

```bash
npm install wx-axios --save
```

### Use

```javascript
import axios from 'wx-axios';
```

And then you can use axios in wechat miniprogram as usual.

### Tip

if you can't use npm, you can clone this respo and `npm run build`, then get `axios.min.js` from './dist/'.
Clone this file into your miniprogram project utils.
However, you can use it:
`import axios from './utils/axios.min.js';`

### Run weapp example
if you use native wechat-weapp,you should see code in native-wechat-weapp in the folder 'examples';
if you use wepy to build your weapp,you can run `npm run wepy-example` to get an example.
In order to use native wechat-app or wepy,you ought to view offical documentation

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