1 | # HAR Validator
|
2 |
|
3 | [![license][license-img]][license-url]
|
4 | [![version][npm-img]][npm-url]
|
5 | [![super linter][super-linter-img]][super-linter-url]
|
6 | [![test][test-img]][test-url]
|
7 | [![release][release-img]][release-url]
|
8 |
|
9 | [license-url]: LICENSE
|
10 | [license-img]: https://badgen.net/github/license/ahmadnassri/node-har-validator
|
11 |
|
12 | [npm-url]: https://www.npmjs.com/package/har-validator
|
13 | [npm-img]: https://badgen.net/npm/v/har-validator
|
14 |
|
15 | [super-linter-url]: https://github.com/ahmadnassri/node-har-validator/actions?query=workflow%3Asuper-linter
|
16 | [super-linter-img]: https://github.com/ahmadnassri/node-har-validator/workflows/super-linter/badge.svg
|
17 |
|
18 | [test-url]: https://github.com/ahmadnassri/node-har-validator/actions?query=workflow%3Atest
|
19 | [test-img]: https://github.com/ahmadnassri/node-har-validator/workflows/test/badge.svg
|
20 |
|
21 | [release-url]: https://github.com/ahmadnassri/node-har-validator/actions?query=workflow%3Arelease
|
22 | [release-img]: https://github.com/ahmadnassri/node-har-validator/workflows/release/badge.svg
|
23 |
|
24 | > Extremely fast HTTP Archive ([HAR](https://github.com/ahmadnassri/har-spec/blob/master/versions/1.2.md)) validator using JSON Schema.
|
25 |
|
26 | ## Install
|
27 |
|
28 | ```bash
|
29 | npm install har-validator
|
30 | ```
|
31 |
|
32 | ## CLI Usage
|
33 |
|
34 | Please refer to [`har-cli`](https://github.com/ahmadnassri/har-cli) for more info.
|
35 |
|
36 | ## API
|
37 |
|
38 | **Note**: as of [`v2.0.0`](https://github.com/ahmadnassri/node-har-validator/releases/tag/v2.0.0) this module defaults to Promise based API.
|
39 | _For backward compatibility with `v1.x` an [async/callback API](docs/async.md) is also provided_
|
40 |
|
41 | - [async API](docs/async.md)
|
42 | - [callback API](docs/async.md)
|
43 | - [Promise API](docs/promise.md) _(default)_
|