title: Syntax (windows and linux) for multiple commands using Node cross-env
body: <p>I'm taking a look at a project that has this line in it's package.json to run Karma tests</p>
  
  <pre><code> "scripts": {
          "test": "NODE_ENV=test karma start karma.conf.js",
  </code></pre>
  
  <p>This doesn't work in Windows when I try "npm test".</p>
  
  <p>I gather this is because this is a *nix syntax. And, in fact, if I change it to </p>
  
  <pre><code> "scripts": {
          "test": "set NODE_ENV=test &amp;&amp; karma start karma.conf.js",
  </code></pre>
  
  <p>the tests start when I run npm test.</p>
  
  <p>Looking around, the optimal solution appears to be to use the cross-env package and rewrite it like</p>
  
  <pre><code> "scripts": {
          "test": "cross-env NODE_ENV=test &amp;&amp; karma start karma.conf.js",
  </code></pre>
  
  <p>So I get the cross-env will take care of the "set NODE_ENV" part to work on multiple OSes, but it's the "&amp;&amp;" part I'm questioning.</p>
  
  <p>Do I leave the "&amp;&amp;" between the commands when using cross-env? Will that work in windows and linux?</p>