title: module.exports that include all functions in a single line
body: <p>This is a follow-up question to <a href="https://stackoverflow.com/questions/5797852/in-node-js-how-do-i-include-functions-from-my-other-files">In Node.js, how do I &quot;include&quot; functions from my other files?</a></p>
  
  <p>I would like to include an external js file that contains common functions for a node.js app.</p>
  
  <p>From one of the answers in <a href="https://stackoverflow.com/questions/5797852/in-node-js-how-do-i-include-functions-from-my-other-files">In Node.js, how do I &quot;include&quot; functions from my other files?</a>, this can be done by </p>
  
  <pre><code>// tools.js
  // ========
  module.exports = {
    foo: function () {
      // whatever
    },
    bar: function () {
      // whatever
    }
  };
  
  var zemba = function () {
  }
  </code></pre>
  
  <p>It is inconvenient to export each and every function. Is it possible to have a one-liner that exports all functions? Something that looks like this;</p>
  
  <pre><code>module.exports = 'all functions';
  </code></pre>
  
  <p>It is so much more convenient this way. It is also less buggy in case one forgets to export certain functions later.</p>
  
  <p>If not a one-liner, are there simpler alternatives that make coding more convenient? I just want to include an external js file made up of common functions conveniently. Something like <code>include &lt;stdio.h&gt;</code> in C/C++.</p>