Axios plugin that adds timing data (start, end, elapsed time) to every request response cycle. Version 1.0.3 is the latest stable release. Lightweight, no additional dependencies beyond axios. Provides `response.timings` object with `timingStart`, `timingEnd`, and `elapsedTime` in milliseconds. Compatible with axios 0.x and 1.x. Quick to integrate, but limited configuration and no TypeScript types.
npm install axios-request-response-timeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: attach plugin to axios, make a request, and log response.timings.
Create a dedicated axios instance with axios.create() and apply plugin only to that instance.
Read the documentation carefully; actual unit may be seconds (elapsedTime*1000 gives ms). Or test to verify.
Add declare module 'axios-request-response-time' in a .d.ts file or use @ts-ignore.
Apply the plugin before other interceptors that might replace the response object.
Ensure axiosTime(axios) is called on the same axios instance used in the request.
Install the package: npm i axios-request-response-time. Then import with require or import default.