aboutsummaryrefslogtreecommitdiff
path: root/node_modules/get-proxy/index.js
blob: 0bc81697f8a1dc981330e6fec3f7b2e77ba20ebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
};