Axios error wrapper that provides structured and human-readable error messages for HTTP requests made with Axios. Version 1.0.4 is the latest stable release; the package is mature with low release cadence. It wraps raw Axios errors, extracting config, request, and response objects for debugging. Differentiator: built-in formatted output via console.log, TypeScript typings included. Supports Node >=8. Part of the Yoctol messaging-apis monorepo.
npm install axios-errorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows wrapping an Axios error and accessing the formatted message and response status.
Upgrade Node to version 8 or above.
Use const { AxiosError } = require('axios-error') or import { AxiosError } from 'axios-error'.Check error.isAxiosError before wrapping, or handle generic errors separately.
Use `const { AxiosError } = require('axios-error')` or `import { AxiosError } from 'axios-error'`.Run `npm install axios-error` or check your node_modules path.