title: How to find out which file NPX runs?
body: <p>When you run, say, <code>npx webpack</code> in a terminal, NPX finds a <code>webpack</code> package somewhere and runs it. How to identify the exact location of the binary that NXP runs? I'm looking for a tool like <a href="https://en.wikipedia.org/wiki/Which_(command)" rel="noreferrer">which</a> in NPX.</p>
  
  <p>Maybe there is an option like this (warning, it's not a real code):</p>
  
  <pre><code>$ npx --which webpack
  /users/me/my-project/node_modules/.bin/webpack
  </code></pre>