1.0.1 • Published 1 year ago

@malback/codegen-swagger v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Install

Pour utiliser la commande CLI

npm install -g @malback/codegen-swagger

Requirements

  • Node.js v16.0+

Usage

Depuis le CLI

  Usage: cse [options] <swaggerFile>

  Options:

    -V, --version                  output the version number
    -o, --output <outputDir>       directory where to put the generated files (defaults to current directory)
    -t, --templates <templateDir>  directory where templates are located (defaults to internal nodejs templates)
    -m, --mongoose                 templates with mongoose
    -h, --help                     output usage information

Examples

Pour un projet avec mongoose

cse swagger.yaml -m

Pour un projet sans mongoose

cse swagger.yaml