fetch-har

JSON →
library 12.0.4 ·javascript
verified Jun 7, 2026

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.