Gathering detailed insights and metrics for @openapi-generator-plus/typescript-express-example-server-generator
Gathering detailed insights and metrics for @openapi-generator-plus/typescript-express-example-server-generator
npm install @openapi-generator-plus/typescript-express-example-server-generator
Typescript
Module System
Node Version
NPM Version
Handlebars (46.97%)
TypeScript (45.76%)
Less (5.02%)
JavaScript (1.48%)
Shell (0.78%)
Total Downloads
25,802
Last Day
3
Last Week
4
Last Month
143
Last Year
3,843
21 Stars
1,295 Commits
9 Forks
4 Watching
5 Branches
3 Contributors
Latest Version
1.6.3
Package Id
@openapi-generator-plus/typescript-express-example-server-generator@1.6.3
Unpacked Size
27.13 kB
Size
9.34 kB
File Count
12
NPM Version
10.8.2
Node Version
20.17.0
Publised On
15 Sept 2024
Cumulative downloads
Total Downloads
Last day
0%
3
Compared to previous day
Last week
-66.7%
4
Compared to previous week
Last month
-39.4%
143
Compared to previous month
Last year
-50.4%
3,843
Compared to previous year
An OpenAPI Generator Plus template for a TypeScript API server using Express to serve example responses.
If you've added example responses in your OpenAPI spec then this server will output them in response to API requests. If you've specified multiple requests it will randomly choose between them.
See the OpenAPI Generator Plus documentation for how to use generator templates.
Once the generator has been run, the generated package can be run using:
1npm install 2npm start
It will start an API server running on port 3000.
You may also specify a different port:
1npm start -- -p 9000
The available config file properties are:
Property | Type | Description | Default |
---|---|---|---|
relativeSourceOutputPath | string | The path to output generated source code, relative to the output path. | ./ or ./src if npm is specified. |
A tsconfig.json
file will be output if you specify any of the TypeScript config options.
Property | Type | Description | Default |
---|---|---|---|
typescript | TypeScriptConfig | Configuration for the tsconfig.json file. | undefined |
TypeScriptConfig
Property | Type | Description | Default |
---|---|---|---|
target | string | The ECMAScript target version. | ES5 |
Property | Type | Description | Default |
---|---|---|---|
npm | NpmConfig | Configuration for generating an npm package.json | undefined |
NpmConfig
Property | Type | Description | Default |
---|---|---|---|
name | string | The package name | typescript-fetch-api |
version | string | The package version | 0.0.1 |
repository | string | The URL to the package repository | undefined |
Property | Type | Description | Default |
---|---|---|---|
customTemplates | string | The path to a directory containing custom Handlebars templates, relative to the config file. See Customising below. | undefined |
This generator supports a customTemplates
config file property to specify a directory containing Handlebars templates that will be used to override built-in templates.
Any custom template will have the original template available as a partial named by prefixing the template name with original
, and then upper-casing the first letter, e.g. originalModelEnum
.
Some of the templates in the generator are designed to support overriding for custom requirements. Please inspect the templates in the templates
directory.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
no SAST tool detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-12-30
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