Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
express-swagger-ui
Advanced tools
Serve swagger-ui with express.js (without hacking `node_modules/swagger-ui/dist/index.html`)
Serve swagger-ui with express.js (without hacking
node_modules/swagger-ui/dist/index.html
)
Install with npm
$ npm i express-swagger-ui --save
npm i -S express swagger-ui
const express = require('express');
const app = express();
require('express-swagger-ui')({
app : app,
swaggerUrl: '/swagger.json', // this is the default value
localPath : '/explorer' // this is the default value
});
{%= apidocs("index.js") %}
{%= related([]) %}
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Andreas Pizsa
Copyright © 2016 Andreas Pizsa Released under the MIT license.
This file was generated by verb-cli on April 06, 2016.
FAQs
Serve swagger-ui with express.js (without hacking `node_modules/swagger-ui/dist/index.html`)
We found that express-swagger-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.