title: how to write an npm module that can be trigger from the command line like bower
body: <p>I don't even know the correct terminology yet but..</p>
  
  <p>I want to write my own npm module to be installed globally and called via cli by its name, just in the same way as bower...</p>
  
  <p>With bower on windows in the:</p>
  
  <pre><code>C:\Users\myusername\AppData\Roaming\npm
  </code></pre>
  
  <p>There are a series of files related to all the modules i call from cli eg:</p>
  
  <pre><code>bower
  bower.cmd
  </code></pre>
  
  <p>I want to know how I can create my own module that would create my own versions of these.</p>
  
  <p>Thanks
  John</p>