Gathering detailed insights and metrics for @pakholeung37/openapi-typescript-codegen
Gathering detailed insights and metrics for @pakholeung37/openapi-typescript-codegen
npm install @pakholeung37/openapi-typescript-codegen
Typescript
Module System
Node Version
NPM Version
68.4
Supply Chain
98
Quality
74.8
Maintenance
100
Vulnerability
99.6
License
TypeScript (83.69%)
Handlebars (13.89%)
JavaScript (2.33%)
HTML (0.04%)
Dockerfile (0.04%)
Total Downloads
356
Last Day
1
Last Week
4
Last Month
10
Last Year
53
3,049 Stars
2,711 Commits
532 Forks
15 Watching
6 Branches
51 Contributors
Minified
Minified + Gzipped
Latest Version
0.24.0
Package Id
@pakholeung37/openapi-typescript-codegen@0.24.0
Unpacked Size
225.02 kB
Size
33.24 kB
File Count
6
NPM Version
8.19.3
Node Version
16.19.1
Publised On
06 May 2023
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
100%
4
Compared to previous week
Last month
900%
10
Compared to previous month
Last year
-82.5%
53
Compared to previous year
53
Node.js library that generates Typescript clients based on the OpenAPI specification.
npm install openapi-typescript-codegen --save-dev
$ openapi --help
Usage: openapi [options]
Options:
-V, --version output the version number
-i, --input <value> OpenAPI specification, can be a path, url or string content (required)
-o, --output <value> Output directory (required)
-c, --client <value> HTTP client to generate [fetch, xhr, node, axios, angular] (default: "fetch")
--name <value> Custom client class name
--useOptions Use options instead of arguments
--useUnionTypes Use union types instead of enums
--exportCore <value> Write core files to disk (default: true)
--exportServices <value> Write services to disk (default: true)
--exportModels <value> Write models to disk (default: true)
--exportSchemas <value> Write schemas to disk (default: false)
--indent <value> Indentation options [4, 2, tab] (default: "4")
--postfixServices Service name postfix (default: "Service")
--postfixModels Model name postfix
--request <value> Path to custom request file
-h, --help display help for command
Examples
$ openapi --input ./spec.json --output ./generated
$ openapi --input ./spec.json --output ./generated --client xhr
To build the Docker container, execute the following command:
docker build . --tag openapi-typescript-codegen
After this is done, you can execute the CLI commands:
docker run openapi-typescript-codegen --help
docker run openapi-typescript-codegen --input sample.yaml --output client
--name
--useOptions
--useUnionTypes
--exportSchemas
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool is run on all commits
Details
Reason
5 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 6
Reason
5 existing vulnerabilities detected
Details
Reason
Found 0/2 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-02-03
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