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

system-proxy

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

system-proxy

Set system proxy for mac and windows platform

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
63
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

system-proxy: Set system proxy for mac & windows platform

Installing:

 npm install system-proxy

Usage:

var proxy = require('system-proxy');

proxy.setProxyOn(p[0], p[1])
  .then(function() {
    console.log('Proxy on ok!');
  })
  .catch(function() {
    console.log('fail');
  });

proxy.setProxyOff()
  .then(function() {
    console.log('Proxy off ok!');
  })
  .catch(function() {
    console.log('fail');
  });

terminal

# disable web-proxy
system-proxy -d

# set web-proxy
system-proxy -h localhost:8080

Keywords

FAQs

Package last updated on 15 Feb 2015

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