1.0.2 • Published 8 years ago

build-swagger v1.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

build-swagger

Build Status

Simple wrapper around swagger-jsdoc

Builds a swagger.json based on a swagger.js specification file. By default, tries to find swagger.js in ./swagger.js and ./src/swagger.js and writes to ./swagger.json.

Install

npm install --save build-swagger

Requires Node v6+

Usage

See ./test directory for usage examples.

build-swagger [--spec] [--jsonPath]
# by default, spec looks for ./swagger.js or ./src/swagger.js
# if jsonPath is not specified, it will output to stdout

# example:
build-swagger.js --spec ./src/swagger.js --jsonPath myswagger.json