Registry / devops / axios-debug

axios-debug

JSON →
library0.0.4jsnpmunverified

Minimal library to log Axios requests and responses for debugging. Current version 0.0.4, no recent updates. Wraps Axios interceptors to print request/response details. Lightweight, no dependencies beyond Axios. Lower-level than axios-logger; no configuration options.

npm install axios-debug
INSTALL
IMPORT
SIG · AXIOS-DEBUG
A
axios-debug
devopsjavascriptv0.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import axiosDebug from 'axios-debug'
import { axiosDebug } from 'axios-debug'
Package exports a single function as default. Named import will fail.
default
const axiosDebug = require('axios-debug')
require('axios-debug').default
CommonJS require returns the function directly, not an object with default property.
default
const axiosDebug = require('axios-debug'); axiosDebug(axios)
require('axios-debug')(axios)
CommonJS one-liner works, but avoid split for clarity.

Demonstrates importing and initializing axios-debug with Axios, then making a GET request.

import axios from 'axios'; import axiosDebug from 'axios-debug'; axiosDebug(axios); axios.get('https://api.example.com/data').then(response => { console.log('Request logged above'); });
Debug
Known issues
deprecatedLibrary is unmaintained and may not support latest Axios versions.
fix
Consider alternatives like axios-logger or custom interceptors.
affects: >=0.0.4
gotchaMust call imported function with Axios instance before making requests.
fix
Ensure axiosDebug(axios) is executed at startup.
affects: all
Errors
Common errors & fixes
TypeError: axiosDebug is not a function
Using named import instead of default import.
fix
Change import to: import axiosDebug from 'axios-debug'
Cannot find module 'axios'
Axios not installed.
fix
Install axios: npm install axios
Upgrade
Version history
0.0.4latest on npm
Audit
Dependencies
axiosrequiredpeer dependency for intercepting HTTP calls
Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
axios-debug — npm install axios-debug · libregistry