New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

hapi-proxy-get

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

hapi-proxy-get

Hapi plugin to proxy get requests

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

hapi-proxy-get

Hapi plugin to proxy get requests

installation

'npm install hapi-proxy-get -S'

usage

const Hapi = require('hapi');

const server = hapi.server();
await server.register([{
  plugin: require('hapi-proxy-get'),
  options: {
    uri: 'https://my-proxied-uri.com'
    path: '/proxy',
    options: {
      tags: ['proxy']
    }
  }
}]);

where:

  • uri is the uri which where the request is directed to

    Note: A correct uri is required

  • path is the prefix for the path

    Default: '/proxy'

  • options is an object containing the hapi route options

    Default: {}

Keywords

hapi

FAQs

Package last updated on 16 Dec 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