0.0.18 • Published 8 years ago

swagger-node-codegen-cli v0.0.18

Weekly downloads
68
License
-
Repository
github
Last release
8 years ago

CLI for Swagger ES6 Node.js code generator

Description

CLI for swagger-node-codegen. Use your API Swagger definition to generate the Node.js ES6-compliant code of your API.

The generated code features:

  • ES6
  • Gulp
  • Makefile
  • ESLint
  • YAML config file
  • Express

How to use it?

npm install swagger-node-codegen-cli -g

Syntax:

snc [path/to/swagger/file] [path/to/target/directory]

Swagger file can be either JSON or YAML.

Example:

snc ~/my-api.json ~/my-api

If none of the arguments above are provided then you'll be prompted for them:

npm.io

It will generate a directory structure like this:

.editorconfig
.eslintrc
Makefile
README.md
config
  common.yml
gulpfile.js
package.json
src
  api
    routes
      users.js
      products.js
    services
      users.js
      products.js
    index.js
  bin
    www
  lib
    config.js
    logger.js

## Author

Francisco Méndez Vilas (fmvilas@gmail.com)

www.fmvilas.com

0.0.18

8 years ago

0.0.17

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago