Gathering detailed insights and metrics for oai-ts-commands
Gathering detailed insights and metrics for oai-ts-commands
Gathering detailed insights and metrics for oai-ts-commands
Gathering detailed insights and metrics for oai-ts-commands
npm install oai-ts-commands
Typescript
Module System
Node Version
NPM Version
77.1
Supply Chain
83.1
Quality
75.1
Maintenance
100
Vulnerability
64.2
License
TypeScript (99.02%)
JavaScript (0.94%)
HTML (0.04%)
Total Downloads
37,052
Last Day
1
Last Week
74
Last Month
178
Last Year
1,380
4 Stars
314 Commits
1 Forks
4 Watching
3 Branches
8 Contributors
Minified
Minified + Gzipped
Latest Version
0.2.67
Package Id
oai-ts-commands@0.2.67
Unpacked Size
1.55 MB
Size
169.79 kB
File Count
231
NPM Version
6.4.1
Node Version
8.15.0
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
34.5%
74
Compared to previous week
Last month
493.3%
178
Compared to previous month
Last year
-17.5%
1,380
Compared to previous year
A typescript library for mutating data models created using the oai-ts-core library.
Install with npm install oai-ts-commands
.
You can use this library to mutate an OpenAPI document.
The easiest way to get started is to create an instance of a command and execute it:
Typescript:
1// Get the OpenAPI document from somewhere (can be a string or js object). 2let openApiData: any = ...; 3// Create an instance of the library utils class and use it to parse the OpenAPI document. 4let library: OasLibraryUtils = new OasLibraryUtils(); 5let document: Oas30Document = <Oas30Document> library.createDocument(openApiData); 6 7// Mutate the document using one or more Command 8let command: ICommand = new ChangePropertyCommand<string>("description", "New description goes here!", document.info); 9command.execute(document);
Browser (UMD):
1// Get the OpenAPI document from somewhere (can be a string or js object). 2var openApiData = ...; // Get your OpenAPI data somehow (can be string or JS object) 3// Create an instance of the library utils class and use it to parse the OpenAPI document. 4var library = new OAI.OasLibraryUtils(); 5var document = library.createDocument(openApiData); 6 7// Mutate the document using one or more Command 8var command = new ChangePropertyCommand("description", "New description goes here!", document.info); 9command.execute(document);
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
project is archived
Details
Reason
Found 0/6 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
Reason
88 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-20
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