A library for capturing HTTP Archive (HAR) files from axios requests. v0.8.0 supports axios 0.x/1.x. Tracks all requests made through axios and builds a HAR object that can be exported to a .har file. Inspired by request-har, differentiates by working specifically with axios. TypeScript types included. Not frequently updated.
npm install axios-har-trackerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a tracker, makes GET and POST requests, then retrieves the HAR object.
Ensure the tracker is created before calling axios.get/post/etc.
Use a single tracker instance per session or call a reset method if available (not provided).
Use axios >=1.0.0 and verify compatibility.
Use import { AxiosHarTracker } instead of import AxiosHarTracker from 'axios-har-tracker'.Pass the default axios export or create an instance using axios.create().
Ensure you pass the axios module itself: new AxiosHarTracker(axios).
Move tracker instantiation before any axios calls.