Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

global-tunnel-ng

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

global-tunnel-ng

Global HTTP & HTTPS tunneling

  • 2.7.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
392K
decreased by-13.39%
Maintainers
1
Weekly downloads
 
Created

What is global-tunnel-ng?

The global-tunnel-ng npm package is used to configure global HTTP/HTTPS proxy settings for Node.js applications. It allows you to route all HTTP and HTTPS requests through a proxy server, which can be useful for various purposes such as accessing resources behind a firewall, anonymizing requests, or debugging network traffic.

What are global-tunnel-ng's main functionalities?

Setting up a global proxy

This feature allows you to set up a global proxy for all HTTP and HTTPS requests in your Node.js application. The `initialize` method configures the proxy server's host and port, and optionally, the number of sockets to use.

const globalTunnel = require('global-tunnel-ng');
globalTunnel.initialize({
  host: 'proxy.example.com',
  port: 8080,
  sockets: 50 // optional pool size for sockets
});

Disabling the global proxy

This feature allows you to disable the global proxy settings that were previously configured. The `end` method stops routing requests through the proxy server.

globalTunnel.end();

Customizing proxy settings

This feature allows you to customize the proxy settings further by providing optional parameters such as authentication credentials, protocol, and tunneling. The `initialize` method accepts these additional options to configure the proxy server as needed.

globalTunnel.initialize({
  host: 'proxy.example.com',
  port: 8080,
  proxyAuth: 'user:password', // optional authentication
  protocol: 'https', // optional protocol
  tunnel: true // optional tunneling
});

Other packages similar to global-tunnel-ng

Keywords

FAQs

Package last updated on 21 Nov 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

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