🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

express-swaggerize-ui

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-swaggerize-ui

Express middleware to display a swagger-ui 3 page

1.1.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

express-swaggerize-ui

express-swaggerize-ui is an node express middleware to show swagger-ui 3 for your local (or external) api.

Installation

npm install --save express-swaggerize-ui

Usage

const express   = require('express');
const app       = express();
const swaggerUi = require('express-swaggerize-ui');

app.use('/api-docs.json', function (req, res) {
  res.json(require('./path/to/swaggerize/docs.json'));
});
app.use('/api-docs', swaggerUi());

app.listen(3000);

Generate swagger doc.json

express-swagger-generator

Keywords

swagger-ui

FAQs

Package last updated on 09 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts