New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gate-agent

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gate-agent

Node.js Agent with HTTP_PROXY, HTTP_PROXY, and NO_PROXY support for node-fetch, got, and others

  • 0.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
53
increased by130.43%
Maintainers
1
Weekly downloads
 
Created
Source

gate-agent

Node.js Agent with HTTP_PROXY, HTTPS_PROXY, and NO_PROXY (and their lower-case variants) support for node-fetch, got, and others.

Example

Use gate-agent/register to set the http and https global agents to gate-agent:

require("gate-agent/register");

// ...

Create a gate-agent instance for explicit usage:

const { GateAgent } = require("gate-agent");
const fetch = require("node-fetch");

const agent = new GateAgent();
const response = await fetch("...", { agent });

API

GateAgent

Options:

  • [httpProxy = process.env.HTTP_PROXY] - Set proxy for http requests
  • [httpsProxy = process.env.HTTPS_PROXY] - Set proxy for https and http requests
  • [noProxy = process.env.NO_PROXY] - Comma-separated list or array of wildcards to not proxy
  • http or https Agent options

gate-agent/register

Create a GateAgent instance and assign it to http.globalAgent and https.globalAgent.

Keywords

FAQs

Package last updated on 28 Oct 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc