Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis. Learn more
Socket
Log inDemoInstall

swagger-jsdoc-webpack-plugin

Package Overview
Dependencies
2
Maintainers
1
Versions
9
Issues
File Explorer

Advanced tools

swagger-jsdoc-webpack-plugin

A webpack plugin to generate a swagger.json file from jsdoc

    2.1.0latest
    GitHub

Version published
Maintainers
1
Weekly downloads
684
decreased by-23.92%

Weekly downloads

Changelog

Source

v2.1.0

2.1.0 (2022-12-17)

Features

  • add outputFile option (67a316e)

Readme

Source

Swagger JSDoc Webpack Plugin

npm Version npm Downloads Known Vulnerabilities License

Example Usage

webpack.json

const SwaggerJSDocWebpackPlugin = require('swagger-jsdoc-webpack-plugin'); module.exports = { ... plugins: [ new SwaggerJSDocWebpackPlugin({ definition: { openapi: '3.0.0', info: { title: 'Title', version: '1.0.0', description: 'Description', }, }, apis: ['./src/routes/**/*.js'], }), ... ], ... }

This writes a swagger.json file in your output folder.

Options

outputFile?: string

The path of the generated swagger file. Default: "swagger.json"

swagger-jsdoc options

All other options are directly passed to swagger-jsdoc.

Dependencies

Keywords

FAQs

Last updated on 17 Dec 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc