Gathering detailed insights and metrics for @luminati-io/har-validator
Gathering detailed insights and metrics for @luminati-io/har-validator
Gathering detailed insights and metrics for @luminati-io/har-validator
Gathering detailed insights and metrics for @luminati-io/har-validator
npm install @luminati-io/har-validator
Typescript
Module System
Min. Node Version
Node Version
NPM Version
71.4
Supply Chain
98.9
Quality
80
Maintenance
50
Vulnerability
100
License
JavaScript (100%)
Total Downloads
13,923
Last Day
7
Last Week
31
Last Month
145
Last Year
5,780
61 Stars
231 Commits
27 Forks
4 Watching
30 Branches
7 Contributors
Minified
Minified + Gzipped
Latest Version
2.0.6-lum.1
Package Id
@luminati-io/har-validator@2.0.6-lum.1
Unpacked Size
22.11 kB
Size
5.83 kB
File Count
24
NPM Version
6.14.16
Node Version
14.19.0
Publised On
25 Jul 2023
Cumulative downloads
Total Downloads
Last day
75%
7
Compared to previous day
Last week
19.2%
31
Compared to previous week
Last month
-50.3%
145
Compared to previous month
Last year
-29%
5,780
Compared to previous year
4
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
Note: as of v2.0.0
this module defaults to Promise based API. For backward comptability with v1.x
an async/callback API is provided
Returns a promise that resolves to the valid object.
Object
(Required)
a full HAR object1validate(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
Returns a promise that resolves to the valid object.
Object
(Required)
a log object1validate.log(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
Returns a promise that resolves to the valid object.
Object
(Required)
a cache object1validate.cache(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
Returns a promise that resolves to the valid object.
Object
(Required)
a "beforeRequest" or "afterRequest" objects1validate.cacheEntry(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
Returns a promise that resolves to the valid object.
Object
(Required)
a content object1validate.content(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
Returns a promise that resolves to the valid object.
Object
(Required)
a cookie object1validate.cookie(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
Returns a promise that resolves to the valid object.
Object
(Required)
a creator object1validate.creator(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
Returns a promise that resolves to the valid object.
Object
(Required)
an entry object1validate.entry(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
alias of Validate(data)
Returns a promise that resolves to the valid object.
Object
(Required)
a page object1validate.page(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
Returns a promise that resolves to the valid object.
Object
(Required)
a pageTimings object1validate.pageTimings(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
Returns a promise that resolves to the valid object.
Object
(Required)
a postData object1validate.postData(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
Returns a promise that resolves to the valid object.
Object
(Required)
a record object1validate.record(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
Returns a promise that resolves to the valid object.
Object
(Required)
a request object1validate.request(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
Returns a promise that resolves to the valid object.
Object
(Required)
a response object1validate.cacheEntry(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
Returns a promise that resolves to the valid object.
Object
(Required)
a timings object1validate.timings(data) 2 .then(data => console.log('horray!')) 3 .catch(console.error)
Returns
true
orfalse
.
1var HAR = require('./har.json'); 2var validate = require('har-validator/lib/async'); 3 4validate(HAR, function (e, valid) { 5 if (e) console.log(e.errors) 6 7 if (valid) console.log('horray!'); 8}); 9
The async API provides exactly the same methods as the Promise API
Donations are welcome to help support the continuous development of this project.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
license file detected
Details
Reason
6 existing vulnerabilities detected
Details
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More