Socket
Socket
Sign inDemoInstall

net-proxied

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    net-proxied

Set system proxy for operating system, supporting MAC and Windows.


Version published
Weekly downloads
13
decreased by-40.91%
Maintainers
1
Install size
32.6 kB
Created
Weekly downloads
 

Readme

Source

net-proxied: Set up proxy for operating systems

Published on npm Build Status

Supported

  • Windows operating system
  • Mac operating system
  • Linux operating system (KDE,GNOME)

Install

npm i net-proxied

Example

Set up proxy on Windows:

import { WindowsProxied, WindowsProxyConfig } from "net-proxied";

const config: WindowsProxyConfig = {
  hostname: "10.20.30.40",
  port: 5060,
  types: ["http", "https", "ftp"],
  override: ["localhost", "192.168.*", "10.*"]
};

WindowsProxied.enable(config);

// You can also disable it
// WindowsProxied.disable();

Set up proxy on Mac:

import { MacProxied, MacProxyConfig } from "net-proxied";

const config: MacProxyConfig = {
  hostname: "10.20.30.40",
  port: 5060,
  networkServiceNames: ["Ethernet"],
  types: ["web", "secureweb", "ftp"],
  passDomains: ["localhost", "192.168.*", "10.*"]
};

MacProxied.enable(config);

// You can also disable it
// MacProxied.disable();

Set up proxy on Linux:

import { Authentication, BaseProxyConfig, LinuxProxied, LinuxProxyConfig } from "net-proxied";

const baseProxy: BaseProxyConfig = {
  hostname: "10.20.30.40",
  port: 5060
};

const authentication: Authentication = {
  username: "username",
  password: "password"
};

const config: LinuxProxyConfig = {
  http: baseProxy,
  https: baseProxy,
  ftp: baseProxy,
  socks: baseProxy,
  noProxy: ["localhost", "192.168.*", "10.*"],
  authentication: authentication
};

LinuxProxied.enable(config);

// You can also disable it
// LinuxProxied.disable();

License

MIT © anonysoul

Keywords

FAQs

Last updated on 31 Jan 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc