Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
no-proxy
Advanced tools
Readme
Test URL against NO_PROXY
environment variable.
console.log(process.env.NO_PROXY); // ".foo.com,*.bar.com,10.*,192.168.1."
// requires protocol
var noProxy = require('no-proxy');
noProxy('http://foo.com/'); // true
noProxy('http://www.baz.com/'); // false
// check hostname part only
var noProxyHost = require('no-proxy/hostname');
noProxyHost('foo.com'); // true
noProxyHost('baz.com'); // false
noProxyHost('192.168.1.1'); // true
NOTE: You may want to use memoization around this module.
If you are using a node version prior to Node 8, you need to install url-parse
as a dependency.
FAQs
Determine if a url should bypass a proxy based on NO_PROXY environment variable.
The npm package no-proxy receives a total of 55,942 weekly downloads. As such, no-proxy popularity was classified as popular.
We found that no-proxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.