har-guard

JSON →
library 0.1.0 ·javascript
verified Jun 7, 2026

Zero-dependency TypeScript library for validating HAR 1.2 (HTTP Archive) files, designed as a modern replacement for the deprecated har-validator package. Current version 0.1.0, released as an independent migration helper supporting Node >=18. Key differentiators: fully typed with TypeScript, no external dependencies, offers both synchronous (validateHar, assertHar, isHar) and Promise-based (har, request, response, entry) APIs, and provides structured validation results with detailed issues instead of simple boolean flags. Suitable for projects migrating away from har-validator or building new HAR validation pipelines.