title: Check if a node.js module is available
body: <p>I'm looking for a way to find out if a module is available.</p>
  
  <p>For example, I want to check if the module <code>mongodb</code> is available, programmatically.</p>
  
  <p>Also, it shouldn't halt the program if a module isn't found, I want to handle this myself.</p>
  
  <p><sub>PS: I added this question because Google isn't helpful.</sub></p>