title: How to configure node-fetch to use the company proxy?
body: <p>I am executing a standalone nodejs script (no web server involved) that needs to fetch result from a third party api. The program uses 'node-fetch' to do the fetch(url) and I run it using <code>node .\test.js</code> from command line.</p>
  
  <p>It fails when I am connected to our company network but works fine on direct internet. I have configured the proxy settings in npm and could see that <code>npm config ls</code> shows the correct values for proxy and https-proxy.</p>
  
  <p>So the questions are:
  1. Does running the test.js via node not pick the proxy config from npm?
  2. How to make sure that the <code>fetch(url)</code> call goes through our proxy?</p>
  
  <p>Thanks in advance</p>