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
Extremely fast HTTP Archive (HAR) validator using JSON Schema
npm install @luminati-io/har-validator
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
62 Stars
231 Commits
26 Forks
3 Watchers
30 Branches
7 Contributors
Updated on Jun 05, 2025
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
Published on
Jul 25, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
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
8 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
Found 0/13 approved changesets -- 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-07-07
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