Gathering detailed insights and metrics for har-validator-fsless
Gathering detailed insights and metrics for har-validator-fsless
Extremely fast HTTP Archive (HAR) validator using JSON Schema
npm install har-validator-fsless
Typescript
Module System
Min. Node Version
Node Version
NPM Version
76.5
Supply Chain
100
Quality
75.3
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,516,328
Last Day
646
Last Week
2,724
Last Month
12,259
Last Year
422,386
2 Stars
59 Commits
5 Forks
12 Watching
27 Branches
35 Contributors
Latest Version
1.6.6
Package Id
har-validator-fsless@1.6.6
Unpacked Size
20.77 kB
Size
5.07 kB
File Count
22
NPM Version
3.10.10
Node Version
6.11.1
Cumulative downloads
Total Downloads
Last day
23%
646
Compared to previous day
Last week
-24.9%
2,724
Compared to previous week
Last month
24.5%
12,259
Compared to previous month
Last year
639.3%
422,386
Compared to previous year
4
5
Extremely fast HTTP Archive (HAR) validator using JSON Schema.
1# to use in cli 2npm install --global har-validator 3 4# to use as a module 5npm install --save har-validator
Usage: har-validator [options] <files ...>
Options:
-h, --help output usage information
-V, --version output the version number
-s, --schema [name] validate schema name (log, request, response, etc ...)
1har-validator har.json 2 3har-validator --schema request request.json
Returns true
or false
.
data: Object
(Required)
a full HAR object
callback: Function
gets two arguments (err, valid)
1var HAR = require('./har.json'); 2var validate = require('har-validator'); 3 4validate(HAR, function (e, valid) { 5 if (e) console.log(e.errors) 6 7 if (valid) console.log('horray!'); 8});
Returns true
or false
.
data: Object
(Required)
a log object
callback: Function
gets two arguments (err, valid)
1var validate = require('har-validator'); 2 3validate.log(data, function (e, valid) { 4 if (e) console.log(e.errors) 5});
Returns true
or false
.
data: Object
(Required)
a cache object
callback: Function
gets two arguments (err, valid)
1var validate = require('har-validator'); 2 3validate.cache(data, function (e, valid) { 4 if (e) console.log(e.errors) 5});
Returns true
or false
.
data: Object
(Required)
a "beforeRequest" or "afterRequest" objects
callback: Function
gets two arguments (err, valid)
1var validate = require('har-validator'); 2 3validate.cacheEntry(data, function (e, valid) { 4 if (e) console.log(e.errors) 5});
Returns true
or false
.
data: Object
(Required)
a content object
callback: Function
gets two arguments (err, valid)
1var validate = require('har-validator'); 2 3validate.content(data, function (e, valid) { 4 if (e) console.log(e.errors) 5});
Returns true
or false
.
data: Object
(Required)
a cookie object
callback: Function
gets two arguments (err, valid)
1var validate = require('har-validator'); 2 3validate.cookie(data, function (e, valid) { 4 if (e) console.log(e.errors) 5});
Returns true
or false
.
data: Object
(Required)
a creator object
callback: Function
gets two arguments (err, valid)
1var validate = require('har-validator'); 2 3validate.creator(data, function (e, valid) { 4 if (e) console.log(e.errors) 5});
Returns true
or false
.
data: Object
(Required)
a entry object
callback: Function
gets two arguments (err, valid)
1var validate = require('har-validator'); 2 3validate.entry(data, function (e, valid) { 4 if (e) console.log(e.errors) 5});
alias of Validate(data [, callback])
Returns true
or false
.
data: Object
(Required)
a page object
callback: Function
gets two arguments (err, valid)
1var validate = require('har-validator'); 2 3validate.page(data, function (e, valid) { 4 if (e) console.log(e.errors) 5});
Returns true
or false
.
data: Object
(Required)
a pageTimings object
callback: Function
gets two arguments (err, valid)
1var validate = require('har-validator'); 2 3validate.pageTimings(data, function (e, valid) { 4 if (e) console.log(e.errors) 5});
Returns true
or false
.
data: Object
(Required)
a postData object
callback: Function
gets two arguments (err, valid)
1var validate = require('har-validator'); 2 3validate.postData(data, function (e, valid) { 4 if (e) console.log(e.errors) 5});
Returns true
or false
.
data: Object
(Required)
a record object
callback: Function
gets two arguments (err, valid)
1var validate = require('har-validator'); 2 3validate.record(data, function (e, valid) { 4 if (e) console.log(e.errors) 5});
Returns true
or false
.
data: Object
(Required)
a request object
callback: Function
gets two arguments (err, valid)
1var validate = require('har-validator'); 2 3validate.request(data, function (e, valid) { 4 if (e) console.log(e.errors) 5});
Returns true
or false
.
data: Object
(Required)
a response object
callback: Function
gets two arguments (err, valid)
1var validate = require('har-validator'); 2 3validate.cacheEntry(data, function (e, valid) { 4 if (e) console.log(e.errors) 5});
Returns true
or false
.
data: Object
(Required)
a timings object
callback: Function
gets two arguments (err, valid)
1var validate = require('har-validator'); 2 3validate.timings(data, function (e, valid) { 4 if (e) console.log(e.errors) 5});
No vulnerabilities found.
No security vulnerabilities found.