https://github.com/varletjs/axle
Progressive request tool based on axios.
https://github.com/varletjs/axle
axios axle composition-api http request typescript varlet vue3
Last synced: 15 days ago
JSON representation
Progressive request tool based on axios.
- Host: GitHub
- URL: https://github.com/varletjs/axle
- Owner: varletjs
- License: mit
- Created: 2022-03-22T09:01:24.000Z (about 4 years ago)
- Default Branch: dev
- Last Pushed: 2026-03-23T14:00:09.000Z (25 days ago)
- Last Synced: 2026-03-24T09:12:39.749Z (24 days ago)
- Topics: axios, axle, composition-api, http, request, typescript, varlet, vue3
- Language: TypeScript
- Homepage: https://axle.varletjs.org/
- Size: 1.2 MB
- Stars: 117
- Watchers: 2
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
---
### Intro
Progressive request tool based on [axios](https://axios-http.com/). It does not destroy the original abilities of axios, and helps you process requests more easily.
### Features
- π Β Normalized request functions with expanded methods for different response types
- πͺ Β Vue Composition API support with loading status, error status, upload/download progress, lifecycle, and more
- π οΈ Β Built-in practical request/response interceptors
- π‘ Β Enhanced API definition with `createApi`
- π Β Full compatibility with axios configuration
### Install
```shell
# npm
npm i @varlet/axle -S
# yarn
yarn add @varlet/axle
# pnpm
pnpm add @varlet/axle
```
### Basic Usage
```js
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: {} })
```
### Documentation
For full documentation, please visit the [documentation site](https://axle.varletjs.org).