{"library":"node-fetch-har","type":"library","category":null,"description":"node-fetch-har is a Node.js library that provides a wrapper around the popular `node-fetch` package, enabling the automatic generation of HTTP Archive (HAR) logs for server-side HTTP requests. This functionality is crucial for debugging, performance analysis, and capturing detailed network activity on the backend, analogous to a browser's network tab. Currently at version 1.0.1, the library maintains a stable release cycle, having solidified its API after a series of release candidates for its 1.0.0 major version. A key differentiator is its seamless integration with existing `node-fetch` usage, offering options to attach HAR entries directly to response objects, use an `onHarEntry` callback, or collect multiple entries into a single HAR log via `createHarLog`. It supports custom `node-fetch` agents, tracks various request timings (DNS, connect, SSL, send), and handles redirects and request body data, making it a comprehensive tool for server-side request introspection. Unlike browser-based HAR generation, this library is strictly for server environments due to its reliance on Node.js built-in modules and the sensitive nature of data it can capture.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript"],"install":[{"cmd":"npm install node-fetch-har","imports":["import { withHar } from 'node-fetch-har';","import { createHarLog } from 'node-fetch-har';","response.harEntry"]},{"cmd":"yarn add node-fetch-har","imports":[]},{"cmd":"pnpm add node-fetch-har","imports":[]}],"homepage":null,"github":"https://github.com/exogen/node-fetch-har","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/node-fetch-har","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/node-fetch-har/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}