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

flair-ui

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flair-ui

An express module bundling the swagger-ui

0.0.7
latest
Source
npm
Version published
Weekly downloads
2
Maintainers
2
Weekly downloads
 
Created
Source

flair-ui

An express module that bundles the swagger-ui as a mountable thing. It can be used with any REST service that produces a swagger compliant JSON description.

Note that no changes have been made to the UI apart from templating the initial page to allow passing in of options from the express app.

Installation

    npm install flair-ui

Usage

    var flairui = require('flair-ui');
    //mounts the html docs and api explorer on /docs
    //(needs to know the location of swagger json - could be passed absolute or relative url)
    app.get("/docs", flairui("/api-doc"));
    app.use(express.static('node_modules/flair-ui/node_modules/swagger-ui/dist'));

Licence

Apache Licence 2.0 - same as swagger-ui.

Keywords

express

FAQs

Package last updated on 30 Mar 2016

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