This package can simplify swagger documentation development with a component-based approach
let swagger = require('./index.js')
swagger.init()
swagger.compile()
Install package
npm i swagger-comps
I Also recommend you use this extension for Visual Code
Init your project directory
npm init
Install package.
npm i swagger-comps
Init your project.
swagger.init()
This function will create base directories for your components
Compile.
swagger.compile()