title: Nodejs execute exported function from string
body: <p>I want to know if it's possible to run a function that is named a string in nodejs. All this code is running on the server side with no browser appearance at all.</p>
  
  <p><strong>Assuming I export a file <code>test.js</code> with the following code</strong></p>
  
  <pre><code>module.exports.test = function(x)
  {
     console.log(x*5);
  }
  </code></pre>
  
  <p><strong>Can I do this somehow?</strong></p>
  
  <p><strong>main.js</strong></p>
  
  <pre><code>imp = require('test.js');
  toExecute = "test";
  
  // somehow call imp.test using toExecute`
  </code></pre>