Gathering detailed insights and metrics for @har-sdk/core
Gathering detailed insights and metrics for @har-sdk/core
Gathering detailed insights and metrics for @har-sdk/core
Gathering detailed insights and metrics for @har-sdk/core
HAR SDK enables Node.js developers to easily work with HAR, convert it from OAS/Swagger and Postman collection, and more.
npm install @har-sdk/core
Typescript
Module System
Node Version
NPM Version
86.2
Supply Chain
91
Quality
79
Maintenance
100
Vulnerability
99.6
License
@har-sdk/oas@2.12.2
Updated on Apr 03, 2025
@har-sdk/openapi-sampler@2.4.2
Updated on Apr 03, 2025
@har-sdk/editor@1.5.14
Updated on Mar 25, 2025
@har-sdk/validator@2.6.1
Updated on Mar 25, 2025
@har-sdk/types@1.1.10
Updated on Mar 25, 2025
@har-sdk/postman@2.4.7
Updated on Mar 25, 2025
TypeScript (98.24%)
JavaScript (1.72%)
Shell (0.04%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
11 Stars
157 Commits
5 Forks
15 Watchers
7 Branches
26 Contributors
Updated on Apr 03, 2025
Latest Version
1.5.0
Package Id
@har-sdk/core@1.5.0
Unpacked Size
106.28 kB
Size
25.35 kB
File Count
105
NPM Version
10.8.2
Node Version
18.20.7
Published on
Mar 25, 2025
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
3
1
The base package can be used to import specification files (i.e. HAR, OAS and Postman Collection) and detect their type.
1npm i --save @har-sdk/core
To import a specification you just need to create an instance of SpecImporter
and call its import
method passing the data file. The importer performs syntactic analysis and parses a provided file.
1import { SpecImporter } from '@har-sdk/core'; 2 3const result = await new SpecImporter().import(sourceAsString); 4console.log(result); 5// { 6// type: 'postman', 7// format: 'json', 8// doc: { 9// info: { 10// name: 'Postman Sample', 11// schema: 'https://schema.getpostman.com/json/collection/v2.1.0/collection.json' 12// }, 13// item: [ 14// // ... 15// ] 16// }, 17// name: 'Postman Sample.json' 18// }
To configure the list of importers, you can pass them as an array to the constructor.
1import { SpecImporter, HarImporter } from '@har-sdk/core'; 2 3const explorer = new SpecImporter([new HarImporter()]);
To extend an explorer by adding a new custom importer, you can easily implement an Importer
interface.
1import { Importer, Doc, Spec, Importer } from '@har-sdk/core'; 2 3class RamlImporter implements Importer<'raml'> { 4 get type(): 'raml' { 5 return 'raml'; 6 } 7 8 async import(content: string): Promise<Spec<'raml'>> { 9 // your code 10 11 return { 12 // other fields 13 type: this.type, 14 format: 'yaml' 15 }; 16 } 17}
The package also contains a set of useful utilities like normalizeUrl
:
1import { normalizeUrl } from '@har-sdk/core'; 2 3normalizeUrl('HTTP://example.COM////foo////dummy/../bar/?'); // http://example.com/foo/bar
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
all changesets reviewed
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
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
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
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