title: Call mongoexport from javascript Node.js
body: <p>I would like to export a Mongo Collection to an .csv. Mongo provides a solution for this but it is limited to the shell.</p>
  
  <p><a href="http://docs.mongodb.org/manual/reference/mongoexport/" rel="nofollow">http://docs.mongodb.org/manual/reference/mongoexport/</a></p>
  
  <p>I'm using the native driver for node.js and would like to be able to do this in a script as opposed to being invoked from the shell.</p>