Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@gasbuddy/configured-swaggerize-express

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gasbuddy/configured-swaggerize-express

A configuration driven swaggerize-express middleware

latest
npmnpm
Version
3.1.1
Version published
Weekly downloads
178
-73.51%
Maintainers
1
Weekly downloads
 
Created
Source

configured-swaggerize-express

Greenkeeper badge A small wrapper around swaggerize-express to allow runtime security handling and config-based instantiation. Please note that if you instantiate the module in configuration, you must resolve the promise that the factory function returns before passing to meddleware. For example:

config.json

{
  "meddleware": {
    "myService": {
      "module": {
        "factory": "require:@gasbuddy/configured-swaggerize-express",
        "arguments": [{
          "spec": "require:some-swagger-module"
        }]
      }
    }
  }
}

server.js

import * as configSwagger from '@gasbuddy/configured-swaggerize-express';

// Load confit first into a variable called config
app.use(meddleware(await configSwagger.resolveFactories(config.get('middleware')));

Keywords

swagger

FAQs

Package last updated on 27 May 2020

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