build-swagger
v1.0.2
Published
[![Build Status](https://travis-ci.org/blockai/build-swagger.svg?branch=master)](https://travis-ci.org/blockai/build-swagger)
Downloads
3
Readme
build-swagger
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