Package Exports
- har-validator
- har-validator/lib/node4/error
- har-validator/src/error
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (har-validator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
HAR Validator

Extremely fast HTTP Archive (HAR) validator using JSON Schema.
Install
npm install --only=production --save har-validatorUsage
I recommend using an optimized build matching your Node.js environment version, otherwise, the standard require would work just fine with any version of Node >= v4.0 .
/*
* Node 7
*/
const validate = require('har-validator/lib/node7')
/*
* Node 6
*/
const validate = require('har-validator/lib/node6')
/*
* Node 4 (Default)
*/
var validate = require('har-validator')CLI Usage
Please refer to har-cli for more info.
API
Note: as of v2.0.0 this module defaults to Promise based API. For backward comptability with v1.x an async/callback API is also provided
- async API
- callback API
- Promise API (default)
©️ ahmadnassri.com · License: ISC · Github: @ahmadnassri · Twitter: @ahmadnassri