0.3.0 โ€ข Published 2 years ago

@corunet/openapi-nodejs-cli v0.3.0

Weekly downloads
-
License
Mozilla Public Li...
Repository
github
Last release
2 years ago

README

License: MPL 2.0 npm version Codacy Badge

๐Ÿ“œ Summary

openapi-nodejs-cli is a typescript code generator from an OpenApi document.

openapi-nodejs-cli can generate nodejs, typescript client and Angular client methods from an OpenApi document.

๐Ÿš€ Getting Started

Node version

This generator requires the Node version >=17.7.1 to run properly

How to install

npm i @corunet/openapi-nodejs-cli --global

๐Ÿง‘๐Ÿปโ€๐Ÿ’ป Usage

openapi-nodejs-cli input/schema.yaml

You can retrieve an option list with this command:

openapi-nodejs-cli --help
Usage: openapi-nodejs-cli [options]

Options:
  -V, --version             output the version number
  -i, --input <string...>   OpenAPI spec URLs or directories
  -o, --output <string...>  Output folder
  --client                  only generate client code
  --server                  only generate server code
  --angular                 generate client code for Angular
  --javascript              generate the code as plain JavaScript instead of TypeScript
  -h, --help                shows this help

๐Ÿงฐ Support

Weโ€™ll be glad to talk and discuss how openapi-nodejs-cli can help you ๐Ÿ˜Š

Reach us through GitHub issues, email or Twitter.

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. License: MPL 2.0