title: node.js: any way to export ALL functions in a file en masse (e.g., to enable unit testing), vs. one by one
body: <p>in node.js, is there any shortcut to export ALL functions in a given file? i want to do this for unit testing purposes, as my unit tests are in a separate file from my production code. </p>
  
  <p>I know i can go through and export each function manually, as in: </p>
  
  <pre><code>exports.myFunction = myFunction;
  </code></pre>
  
  <p>But i'm wondering if there is a simpler/slicker way to do this. </p>
  
  <p>(and yes, i realize for modularity reasons it isn't always a good idea to export all functions, but for unit testing purposes you do want to see all the little functions so you can test them piece by piece.)</p>
  
  <p>Thanks!</p>