Axle
Progressive request tool based on axios.
Install / Use
/learn @varletjs/AxleREADME
Intro
Progressive request tool based on axios. 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
# npm
npm i @varlet/axle -S
# yarn
yarn add @varlet/axle
# pnpm
pnpm add @varlet/axle
Basic Usage
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.
Related Skills
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Writing Hookify Rules
83.8kThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
review-duplication
99.3kUse this skill during code reviews to proactively investigate the codebase for duplicated functionality, reinvented wheels, or failure to reuse existing project best practices and shared utilities.
