title: How to pass output of one command as env variables to another
body: <p>I have a bash script that when ran, produces output like this:</p>
  
  <pre><code>VAR1=test
  VAR2=test
  </code></pre>
  
  <p>I want to pass these variables as environment variables to an npm script, which in this case is just running <code>mocha</code> in the current directory, like if I was running <code>VAR1=test VAR2=test mocha</code>.</p>
  
  <p>Thanks in advance.</p>