# har-validator-compiled

> Validate a HAR file using a compiled AJV schema validator

Latest version **1.0.0** (published 2022-08-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install har-validator-compiled
pnpm add har-validator-compiled
yarn add har-validator-compiled
bun add har-validator-compiled
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-08-09 |
| First published | 2022-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 498.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jonluca DeCaro |
| Maintainers | jonluca |
| Keywords | har, validator, ajv, json, api, converter |

## Links

- npm: https://www.npmjs.com/package/har-validator-compiled
- Repository: https://github.com/jonluca/har-validator
- Issues: https://github.com/jonluca/har-validator/issues
- npm.io page: https://npm.io/package/har-validator-compiled

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-08-09

## README

# HAR Validator (Compiled)

When you want to use `har-validator` but don't want to introduce a dependency on `ajv`.

## Installation

```bash
yarn add har-validator-compiled

npm i --save har-validator-compiled
```

## Usage

```typescript
import { validate } from "har-validator-compiled";
const valid = validate("har", har); // throws a HARError if not valid
```

Or a specific type of validation

```typescript
import { validateHar, validateRequest, validateResponse } from "har-validator-compiled";
const validHar = validateHar(har); // throws a HARError if not valid
const validRequest = validateRequest(request); // throws a HARError if not valid
const validResponse = validateResponse(response); // throws a HARError if not valid
```

---
_Source: https://npm.io/package/har-validator-compiled · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
