title: Print a list of all installed node.js modules
body: <p>In a node.js script that I'm working on, I want to print all node.js modules (installed using npm) to the command line. How can I do this?</p>
  
  <pre><code>console.log(__filename);
  
  //now I want to print all installed modules to the command line. How can I do this?
  </code></pre>