ubdate
This commit is contained in:
13
node_modules/get-proxy/index.js
generated
vendored
Normal file
13
node_modules/get-proxy/index.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
const npmConf = require('npm-conf')();
|
||||
|
||||
module.exports = () => {
|
||||
return process.env.HTTPS_PROXY ||
|
||||
process.env.https_proxy ||
|
||||
process.env.HTTP_PROXY ||
|
||||
process.env.http_proxy ||
|
||||
npmConf.get('https-proxy') ||
|
||||
npmConf.get('http-proxy') ||
|
||||
npmConf.get('proxy') ||
|
||||
null;
|
||||
};
|
||||
Reference in New Issue
Block a user