@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
iot-axios2

kaifangpingtai-vue2

1,597
@epoundor/vue-fetch

The ultimate solution for making API calls in your Vue.js projects

1,592 7
vue-axios

A small wrapper for integrating axios to Vuejs

5,218,200 1,996
vue-axios-plugin

axios plugin for Vuejs project

3,206 58

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
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