Socket
Book a DemoInstallSign in
Socket

gofer-proxy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gofer-proxy

Gofer Proxy

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

gofer-proxy

A companion to gofer that allows you to expose service endpoints in an express app.

npm install --save gofer-proxy

Features

  • Removes callback parameters from the query to disallow JSONP.
  • Hides server and network errors by passing them down the middleware chain.
  • Handles both gofer 2.x and gofer 3.x clients.
  • Honors all the config & option mappers of the service client.

Usage

var goferProxy = require('gofer-proxy');

// `MyClient` is a class derived from Gofer
var myClient = new MyClient(config);

// `app` is an expressjs application
app.use('/some/prefix', function (req, res, next) {
  goferProxy(myClient, req, res, next);
});

FAQs

Package last updated on 05 Jan 2018

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