Gathering detailed insights and metrics for openapi-axios-client-typegen
Gathering detailed insights and metrics for openapi-axios-client-typegen
npm install openapi-axios-client-typegen
Typescript
Module System
Node Version
NPM Version
54.5
Supply Chain
78.7
Quality
73.8
Maintenance
50
Vulnerability
97.9
License
TypeScript (99.1%)
JavaScript (0.8%)
Shell (0.1%)
Total Downloads
1,708
Last Day
1
Last Week
9
Last Month
24
Last Year
275
577 Stars
448 Commits
68 Forks
7 Watching
7 Branches
27 Contributors
Latest Version
5.0.6
Package Id
openapi-axios-client-typegen@5.0.6
Unpacked Size
18.09 kB
Size
5.92 kB
File Count
6
NPM Version
lerna/4.0.0/node@v16.14.2+arm64 (darwin)
Node Version
16.14.2
Cumulative downloads
Total Downloads
Last day
-83.3%
1
Compared to previous day
Last week
28.6%
9
Compared to previous week
Last month
500%
24
Compared to previous month
Last year
30.3%
275
Compared to previous year
Type generator for openapi-client-axios
openapi-client-axios
comes with a tool called typegen
to generate typescript type files (.d.ts) for
OpenAPIClient instances using an OpenAPI definition file.
$ npm install -g openapi-client-axios-typegen
Usage: typegen [file]
Options:
--help Show help [boolean]
--version Show version number [boolean]
Examples:
typegen ./openapi.yml > client.d.ts - generate a type definition file
The output of typegen
exports a type called Client
, which can be used for instances created with OpenAPIClientAxios
.
Both the api.getClient()
and api.init()
methods support passing in a Client type.
1import { Client as PetStoreClient } from './client.d.ts'; 2 3const client = await api.init<PetStoreClient>(); 4const client = await api.getClient<PetStoreClient>();
typegen
supports using both local and remote URLs for OpenAPI definition files.
$ typegen ./petstore.yaml
$ typegen https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml
OpenAPI Client Axios Typegen is Free and Open Source Software. Issues and pull requests are more than welcome!
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
Found 5/21 approved changesets -- score normalized to 2
Reason
8 existing vulnerabilities detected
Details
Reason
0 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 1
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
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