# maxios

> a axios package

Latest version **1.0.4** (published 2019-11-12) · ISC license · 0 weekly downloads

## Install

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

## 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.4 |
| Published | 2019-11-12 |
| First published | 2019-10-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | leemingy |
| Maintainers | leemingy |
| Keywords | axios, package, request, ajax |

## Links

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

## 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.4 (latest) — 2019-11-12
- 1.0.3 — 2019-11-12
- 1.0.2 — 2019-10-01
- 1.0.1 — 2019-10-01
- 1.0.0 — 2019-10-01

## README

### 安装说明
```
  npm install --save maxios
  npm install --save axios
```
### 使用说明
1. import maxios from 'maxios'
2.
```
  maxios({
  		  url:url,//路径
  		  beforeSend:()=>{//发送请求前
  			  console.log('fff')
  		  },
  		  success:()=>{//响应成功
  			  console.log('succes')
  		  }
  }).then((res)=>{//接收到数据
  		  console.log(res)
  }).catch((e)=>{//异常
  		  console.log(e)
  }) 
```
3. maxios方法接受一个对象，对象参数如下:


  &emsp;&emsp;  1. url:代表访问路径 
   
   
  &emsp;&emsp;  2. data：一个对象，传给后台的参数
  
  
  &emsp;&emsp;  3. methods:访问方法，默认get
  
  
  &emsp;&emsp; 4. timeout：超时时间，默认5秒
  
  
  &emsp;&emsp; 5. header：请求头设置
  
  
  &emsp;&emsp;  6. beforeSend:回调函数，代表请求前的行为函数
  
  
  &emsp;&emsp;  7. success:回调函数，代表请求成功的行为函数 
  
  
4. maxios方法返回一个promise对象.

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