如何在节点js中获得系统代理设置?

我正在用电子在windows上编写桌面应用程序。 现在我需要使用系统全局代理设置作为我自己的代理,同时使用请求来获取这样的数据

request({ url: "http://ahdas.drnh.gov.tw/index.php", method: "POST", proxy: this.proxyRequestUrl, headers: { "User-Agent": this.mainWindow.webContents.session.getUserAgent(), "Accept": "application/json, text/javascript, */*; q=0.01", "Accept-Encoding": "gzip, deflate", "Cookie": cookies }, form: {'act': 'Display/built/' + bookKey + "/" + postPageKey} }, (err, response, body) => { }); 

那么,如何获得系统全局代理设置并将其分配给this.proxyRequestUrl?