Axios Shortcut (v0.1.4) is a lightweight wrapper around Axios that provides shorthand methods (GET, DELETE, HEAD, OPTIONS) with a separate params argument, plus a dedicated DOWNLOAD method for file downloads. It maintains the same API for POST, PUT, PATCH as Axios but omits request(config) and getUri. Since v0.1, it has offered a compact API surface with no extra runtime dependencies. Ideal for developers who want to reduce boilerplate when making GET/DELETE requests and need a simple download helper.
npm install axios-shortcutNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creation of AxiosShortcut instance with Axios, GET with separate params argument, POST call, and file download using DOWNLOAD.
When migrating from raw Axios, move any query parameters (or undefined) into the second argument, and config into the third.
Use Axios instance directly if you need these methods.
Only use DOWNLOAD in browser contexts or provide a Node.js polyfill for file downloads.
Ensure your project uses ESM ("type": "module" in package.json) or use a bundler that can consume ESM.Pin to exact version if stability is critical.
Use dynamic import: const AxiosShortcut = await import('axios-shortcut'); or convert to ESM.Ensure you pass an Axios instance: const instance = axios.create({ baseURL: '...' });Use import { GET } from 'axios-shortcut' instead of import GET from 'axios-shortcut'.