| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | 'use strict'; |
| 2 | const npmConf = require('npm-conf')(); | ||||
| 3 | |||||
| 4 | module.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 | }; | ||||