apifs2swagger

0.1.3 • Public • Published

api-first-spec-to-swagger Build Status

Swagger JSON Converter for api-first-spec

Install

$ npm install --save apifs2swagger

Usage

const apifs2swagger = require('apifs2swagger');

apifs2swagger('./**/*.spec.js');

API

apifs2swagger(input, [options])

patterns

Type: string

The patterns that should executed files. patterns using node-glob.

options

-o --output

Type: string
Default: docs

The path that generate static HTML for API docs.

CLI

$ 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

License

MIT © Mitsuru Ogawa

Package Sidebar

Install

npm i apifs2swagger

Weekly Downloads

23

Version

0.1.3

License

MIT

Unpacked Size

15.9 kB

Total Files

15

Last publish

Collaborators

  • mitsuruog