An Axios plugin that measures the actual time taken for HTTP requests to complete. Version 1.0.2 is the latest stable release. It is a lightweight utility for performance monitoring, using interceptors to track request duration and reporting via a callback. Differentiators include simple integration with either the global axios instance or a custom instance, and support for custom callback functions.
npm install axios-timingNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import axios-timing, attach it to the global axios instance, and measure request times logged via console.log.
Use import syntax or convert your project to ESM (e.g., set type: 'module' in package.json).
Do not await axiosTiming(); just call it and let the callback handle timing data.
Define your callback with exact parameters you need, e.g., (timeInMs) => ... or (timeInMs, response) => ...
Consider alternatives like axios' built-in 'onDownloadProgress' or other actively maintained timers.
Use: import axiosTiming from 'axios-timing' (without curly braces).
Use import syntax instead of require(), or set type: 'module' in package.json if using Node.
Run 'npm install axios-timing' and ensure the import path is correct: 'axios-timing' (not './axios-timing').
No dependency data recorded yet.