@varlet/axle
Progressive request tool based on axios
51,429
119
| Install | |
|---|---|
npm install @varlet/axle |
|
| Latest Version: | 1.1.1 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Oct 15, 2026 |
| Links: | GitHub · npm |
Maintainer: haozijunqaq
介绍
基于 axios 的渐进式请求工具。它不会破坏 axios 原有的能力,帮助您更轻松地处理请求。
特性
- 🚀 归一化请求函数参数,并扩展了不同响应类型的请求方法
- 💪 支持 Vue 组合式 API,封装了加载状态、错误状态、上传下载进度、生命周期等
- 🛠️ 内置实用的请求/响应拦截器
- 💡 通过
createApi增强 API 定义能力 - 🌍 完全兼容 axios 配置
安装
# npm
npm i @varlet/axle -S
# yarn
yarn add @varlet/axle
# pnpm
pnpm add @varlet/axle
基本用法
import { createAxle } from '@varlet/axle'
const axle = createAxle(/** @see https://axios-http.com **/)
axle.get('/url', { current: 1, pageSize: 10 }, { headers: {} })
axle.post('/url', { name: 'Axle' }, { headers: {} })
文档
完整文档请访问文档站。
Related Packages
vue-axios-cors
This is http client vue.js plugin for cross origin access without preflight. It...
14,521
5
Version History
| Version | Released | License |
|---|---|---|
| 1.1.1 | MIT | |
| 1.1.0 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT | |
| 1.0.0 | MIT | |
| 0.13.2 | MIT | |
| 0.13.1 | MIT | |
| 0.13.0 | MIT | |
| 0.12.0 | MIT | |
| 0.11.2 | MIT | |
| 0.11.1 | MIT | |
| 0.11.0 | MIT | |
| 0.10.3 | MIT | |
| 0.10.2 | MIT | |
| 0.10.1 | MIT | |
| 0.10.0 | MIT | |
| 0.9.5 | MIT | |
| 0.9.4 | MIT | |
| 0.9.3 | MIT | |
| 0.9.2 | MIT | |
| 0.9.1 | MIT | |
| 0.9.0 | MIT | |
| 0.8.0 | MIT | |
| 0.7.1 | MIT | |
| 0.7.0 | MIT | |
| 0.6.0 | MIT | |
| 0.5.2 | MIT | |
| 0.5.1 | MIT | |
| 0.5.0 | MIT | |
| 0.4.0 | MIT |
Showing the latest 30 of 85. See every release on npm
Pre-releases (22)
| Version | Released | License |
|---|---|---|
| 0.11.0-alpha.1747141760435 | MIT | |
| 0.10.2-alpha.1737055052455 | MIT | |
| 0.6.0-alpha.1704536260879 | MIT | |
| 0.6.0-alpha.1704535862659 | MIT | |
| 0.6.0-alpha.1704535333926 | MIT | |
| 0.5.2-alpha.1704275125769 | MIT | |
| 0.4.0-alpha.1703742235369 | MIT | |
| 0.3.4-alpha.1703091641103 | MIT | |
| 0.3.3-alpha.1703088545411 | MIT | |
| 0.3.3-alpha.1703085980442 | MIT | |
| 0.3.3-alpha.1703057804193 | MIT | |
| 0.2.18-alpha.1702624592933 | MIT | |
| 0.2.18-alpha.1702565170429 | MIT | |
| 0.2.17-alpha.1702139013071 | MIT | |
| 0.2.16-alpha.1702024277404 | MIT | |
| 0.2.16-alpha.1702024160626 | MIT | |
| 0.2.7-alpha.1701536208987 | MIT | |
| 0.2.7-alpha.1701535975035 | MIT | |
| 0.2.4-alpha.1701343552475 | MIT | |
| 0.2.4-alpha.1701343124078 | MIT | |
| 0.2.0-alpha.1694529745774 | MIT | |
| 0.1.2-alpha.1689939673663 | MIT |