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
Command layer for the OAI library - used to mutate the OAI data model.
npm install oai-ts-commands
Typescript
Module System
Node Version
NPM Version
76.9
Supply Chain
83.1
Quality
75.1
Maintenance
100
Vulnerability
75.3
License
TypeScript (99.02%)
JavaScript (0.94%)
HTML (0.04%)
Total Downloads
37,561
Last Day
1
Last Week
1
Last Month
125
Last Year
1,351
Apache-2.0 License
4 Stars
314 Commits
1 Forks
3 Watchers
3 Branches
8 Contributors
Updated on Jan 28, 2023
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
-98.8%
1
Compared to previous week
Last Month
-46.8%
125
Compared to previous month
Last Year
-3.4%
1,351
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
89 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-09
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