NPM Dependencies UPDATE
This commit is contained in:
1 parent
d3bc5e34f6
commit
5bfb4ff32a
732 files changed
+13367
-62155
No files matched your search
+3
-24
@@ -1,4 +1,4 @@
|
||||
# HAR Validator [![version][npm-version]][npm-url] [![License][npm-license]][license-url]
|
||||
# HAR Validator [![version][npm-version]][npm-url] [![License][license-image]][license-url]
|
||||
|
||||
> Extremely fast HTTP Archive ([HAR](https://github.com/ahmadnassri/har-spec/blob/master/versions/1.2.md)) validator using JSON Schema.
|
||||
|
||||
@@ -15,34 +15,13 @@
|
||||
npm install --only=production --save har-validator
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
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` .
|
||||
|
||||
```js
|
||||
/*
|
||||
* 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`](https://github.com/ahmadnassri/har-cli) for more info.
|
||||
|
||||
## API
|
||||
|
||||
**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 comptability with `v1.x` an [async/callback API](docs/async.md) is also provided*
|
||||
**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*
|
||||
|
||||
- [async API](docs/async.md)
|
||||
- [callback API](docs/async.md)
|
||||
@@ -55,12 +34,12 @@ Please refer to [`har-cli`](https://github.com/ahmadnassri/har-cli) for more inf
|
||||
> Twitter: [@ahmadnassri](https://twitter.com/ahmadnassri)
|
||||
|
||||
[license-url]: http://choosealicense.com/licenses/isc/
|
||||
[license-image]: https://img.shields.io/github/license/ahmadnassri/har-validator.svg?style=flat-square
|
||||
|
||||
[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-license]: https://img.shields.io/npm/l/har-validator.svg?style=flat-square
|
||||
[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
|
||||
|
||||
|
||||
Reference in new issue
Block a user