title: How do I un-require a node module and release its memory in node.js?
body: <p>I have read a couple articles about deleting require.cache['path to module'] like this one:<br/>
  <a href="http://blog.alexanderseville.com/post/31919659559/un-require-in-nodejs" rel="nofollow">http://blog.alexanderseville.com/post/31919659559/un-require-in-nodejs</a></p>
  
  <p>but it hasn't been working for me. In my node file, I have these two lines:<br/></p>
  
  <blockquote>
    <p>var fileToJsonParser = require('xls-to-json');<br/>
        delete require.cache[require.resolve('xls-to-json')];<br/></p>
  </blockquote>
  
  <p>I am running on Windows and watching memory usage in task manager. Without those two lines, node.exe's memory usage is about 30 MB, but with as soon as I require 'xls-to-json', the memory usage jumps up to 120 MB even when I try to delete require.cache.</p>