blob: 0bc81697f8a1dc981330e6fec3f7b2e77ba20ebf [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2const npmConf = require('npm-conf')();
3
4module.exports = () => {
5 return process.env.HTTPS_PROXY ||
6 process.env.https_proxy ||
7 process.env.HTTP_PROXY ||
8 process.env.http_proxy ||
9 npmConf.get('https-proxy') ||
10 npmConf.get('http-proxy') ||
11 npmConf.get('proxy') ||
12 null;
13};