Make a fetch request from a HAR (HTTP Archive) definition. Current stable version is 12.0.4, requiring Node >=22 and ESM. Converts HAR log entries into native fetch() calls, supporting Node 18+ and all browsers with native fetch. Key differentiators: no polyfills needed, works across browsers and Node, supports file uploads from buffers or File objects, and integrates with mocking libraries like nock or MSW. Maintained by readme.io with cross-browser CI testing.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Default export only; named import will be undefined. ESM-only, no CommonJS.
Package is ESM-only since v12 (Node >=22). require() will throw ERR_REQUIRE_ESM.
TypeScript types are included. Options type can be imported for customizing requests.
Demonstrates importing fetch-har, constructing a HAR object with an Authorization header, calling fetchHAR, and parsing the JSON response.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.