Swagger JSON Converter for api-first-spec
$ npm install --save apifs2swagger
const apifs2swagger = require('apifs2swagger');
apifs2swagger('./**/*.spec.js');
Type: string
The patterns that should executed files. patterns using node-glob.
Type: string
Default: docs
The path that generate static HTML for API docs.
$ npm install --global apifs2swagger
$ apifs2swagger --help
Usage
$ apifs2swagger [patterns]
Options
-o, --output Output path for API doc. [Default: /docs]
Examples
$ apifs2swagger './**/*.spec.js' -o swagger
swagger/
index.html
main.css
$ apifs2swagger './**/*.spec.js'
docs/
index.html
main.css
MIT © Mitsuru Ogawa