2022-01-14 20:13:26 +01:00
# HAR Validator [![version][npm-version]][npm-url] [![License][license-image]][license-url]
2017-09-20 23:19:33 +02:00
2022-01-14 20:13:26 +01:00
> Extremely fast HTTP Archive ([HAR](https://github.com/ahmadnassri/har-spec/blob/master/versions/1.2.md)) validator using JSON Schema.
2017-09-20 23:19:33 +02:00
[![Build Status][travis-image]][travis-url]
[![Downloads][npm-downloads]][npm-url]
[![Code Climate][codeclimate-quality]][codeclimate-url]
[![Coverage Status][codeclimate-coverage]][codeclimate-url]
2022-01-14 20:13:26 +01:00
[![Dependency Status][dependencyci-image]][dependencyci-url]
2017-09-20 23:19:33 +02:00
[![Dependencies][david-image]][david-url]
## Install
2022-01-14 20:13:26 +01:00
```bash
npm install --only=production --save har-validator
2017-09-20 23:19:33 +02:00
```
2022-01-14 20:13:26 +01:00
## CLI Usage
2017-09-20 23:19:33 +02:00
2022-01-14 20:13:26 +01:00
Please refer to [`har-cli` ](https://github.com/ahmadnassri/har-cli ) for more info.
2017-09-20 23:19:33 +02:00
## API
2022-01-14 20:13:26 +01:00
**Note**: as of [`v2.0.0` ](https://github.com/ahmadnassri/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*
2017-09-20 23:19:33 +02:00
2022-01-14 20:13:26 +01:00
- [async API ](docs/async.md )
- [callback API ](docs/async.md )
- [Promise API ](docs/promise.md ) *(default)*
2017-09-20 23:19:33 +02:00
----
2022-01-14 20:13:26 +01:00
> :copyright: [ahmadnassri.com](https://www.ahmadnassri.com/) ·
> License: [ISC][license-url] ·
> Github: [@ahmadnassri](https://github.com/ahmadnassri) ·
> Twitter: [@ahmadnassri](https://twitter.com/ahmadnassri)
2017-09-20 23:19:33 +02:00
2022-01-14 20:13:26 +01:00
[license-url]: http://choosealicense.com/licenses/isc/
[license-image]: https://img.shields.io/github/license/ahmadnassri/har-validator.svg?style=flat-square
2017-09-20 23:19:33 +02:00
[travis-url]: https://travis-ci.org/ahmadnassri/har-validator
[travis-image]: https://img.shields.io/travis/ahmadnassri/har-validator.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/har-validator
[npm-version]: https://img.shields.io/npm/v/har-validator.svg?style=flat-square
[npm-downloads]: https://img.shields.io/npm/dm/har-validator.svg?style=flat-square
[codeclimate-url]: https://codeclimate.com/github/ahmadnassri/har-validator
[codeclimate-quality]: https://img.shields.io/codeclimate/github/ahmadnassri/har-validator.svg?style=flat-square
[codeclimate-coverage]: https://img.shields.io/codeclimate/coverage/github/ahmadnassri/har-validator.svg?style=flat-square
[david-url]: https://david-dm.org/ahmadnassri/har-validator
[david-image]: https://img.shields.io/david/ahmadnassri/har-validator.svg?style=flat-square
2022-01-14 20:13:26 +01:00
[dependencyci-url]: https://dependencyci.com/github/ahmadnassri/har-validator
[dependencyci-image]: https://dependencyci.com/github/ahmadnassri/har-validator/badge?style=flat-square