title: How to tweak an existing nodejs module and use it outside node_modules folder?
body: <p>I'm using the module <code>node-libcurl</code>. When I deploy my app to Heroku it crashes when I initiate a function from the module (that works on my computer).</p>
  
  <p>Thus I would like to add some logging to the existing <code>node-libcurl</code> module to troubleshoot the issue, and put it in my lib folder outside the <code>node_modules</code> (I excluded it from the git heroku repo).</p>
  
  <p>I added <code>node-pre-gyp</code> lib to the node_modules explicitly.</p>
  
  <p>For information the error is self-explanatory:</p>
  
  <pre><code>Error: getInfo failed. Error: An unknown option was passed in to libcurl
  at Curl.getInfo (/app/node_modules/node-libcurl/lib/Curl.js:1023:15)
  at Object.keys.filter.forEach.key (/app/src/libs/node-libcurl-promise.js:70:23)
  at Array.forEach (&lt;anonymous&gt;)
  at Curl.curl.on (/app/src/libs/node-libcurl-promise.js:69:6)
  at emitThree (events.js:136:13)
  at Curl.emit (events.js:217:7)
  at Curl._onEnd (/app/node_modules/node-libcurl/lib/Curl.js:929:10)
  at Multi.&lt;anonymous&gt; (/app/node_modules/node-libcurl/lib/Curl.js:52:14)
  </code></pre>
  
  <p>I would like to figure out what is the option that I set and that doesn't work 
   on Heroku and that works on my computer.</p>
  
  <p>Thank you!</p>