UNPKG

1.48 kBMarkdownView Raw
1# HAR Validator
2
3[![License][license-image]][license-url] [![version][npm-image]][npm-url] [![Build Status][circle-image]][circle-url]
4
5> Extremely fast HTTP Archive ([HAR](https://github.com/ahmadnassri/har-spec/blob/master/versions/1.2.md)) validator using JSON Schema.
6
7## Install
8
9```bash
10npm install har-validator
11```
12
13## CLI Usage
14
15Please refer to [`har-cli`](https://github.com/ahmadnassri/har-cli) for more info.
16
17## API
18
19**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. _For backward compatibility with `v1.x` an [async/callback API](docs/async.md) is also provided_
20
21- [async API](docs/async.md)
22- [callback API](docs/async.md)
23- [Promise API](docs/promise.md) _(default)_
24
25---
26> Author: [Ahmad Nassri](https://www.ahmadnassri.com/) •
27> Github: [@ahmadnassri](https://github.com/ahmadnassri) •
28> Twitter: [@ahmadnassri](https://twitter.com/ahmadnassri)
29
30[license-url]: LICENSE
31[license-image]: https://img.shields.io/github/license/ahmadnassri/node-har-validator.svg?style=for-the-badge&logo=circleci
32
33[circle-url]: https://circleci.com/gh/ahmadnassri/workflows/node-har-validator
34[circle-image]: https://img.shields.io/circleci/project/github/ahmadnassri/node-har-validator/master.svg?style=for-the-badge&logo=circleci
35
36[npm-url]: https://www.npmjs.com/package/har-validator
37[npm-image]: https://img.shields.io/npm/v/har-validator.svg?style=for-the-badge&logo=npm