title: Javascript Module Export call all functions
body: <p>Is there a way to call all the functions of a module instead of just choosing each one?</p>
  
  <p>For example:</p>
  
  <p>bettermovies.js</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>module.exports={
      printAvatar: function(){
          console.log("Avatar");
      },
  
      printLord: function(){
          console.log("Lord of the Rings");
      },
  
      printGod: function(){
          console.log("God Of War");
      },
      favMovie: "Return of the King"
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>betterindex.js:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var movies=require('./bettermovies');
  movies.printAvatar();
  movies.printLord();
  console.log(movies.favMovie);</code></pre>
  </div>
  </div>
  </p>
  
  <p>The reason I ask is because what if I had a hundred movie functions in .js, it'd be real tedious to do it all manually instead of having a function to call all the functions.  This actually leads me to another question, say you had 100 of these print"movie" function and you wanted to print all of them except for 3 of them, how would you do that then?</p>
  
  <p>Thanks!</p>