title: Building and Using Node.js' C(++) Core Dependencies in Node.js
body: <p>I am trying to use Node.js' C/C++ code to define a function, <code>getInternalBinding</code>, in my Node.js project. The C++ source code can be found in <code>node/src/</code>, and I need to get the function from <code>node_binding.cc</code>. Here is the DownGit link to download the entire C++ src code: <a href="https://downgit.github.io/#/home?url=https://github.com/nodejs/node/tree/aabbf3011b59c6412508086e7a831c02cf3a21aa/src" rel="nofollow noreferrer">downgit</a>. Can I use this code in my Node.js project? I tried to reference it from my index.js like: <code>const getInternalBinding = require('./node_binding.cc')</code> but i get a SyntaxError:</p>
  <pre><code>#include &quot;node_binding.h&quot;
  ^^^^^^^^
  
  SyntaxError: Unexpected identifier
  </code></pre>
  <p>Is there any way to include this file easily? Thanks in advance!</p>