Axios interceptor that profiles HTTP responses for timing information, including network time and axios handling time. Version 1.1.2 (stable, last release in 2019) supports Node >=8 and browsers. Key differentiators: simple integration via interceptor, configurable per-call or instance-level profiling, ability to retrieve all profiling data via defaultApiProfilerInstance. Minimal dependencies (only requires axios). Provides console.log output by default but can be suppressed.
npm install axios-api-profilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing the default profiler, attaching it to axios, and making a GET request with timing logs.
Run 'npm install axios' if not already present.
Use the same instance throughout your app or avoid relying on isolated state.
Use exact strings: 'ignoreApiProfiling' and 'ignoreApiProfilingLogs' as config keys.
Run 'npm install axios-api-profiler' or check spelling.
Use 'import axiosRequestProfiler from 'axios-api-profiler'' (default import).
Change to 'import { defaultApiProfilerInstance } from 'axios-api-profiler'.