title: How to add a native C-module to a node project?
body: <p>I created a node project and for a specific function, I need to create a custom native C-module. I created a <em>Hello World</em> project and moved it into a sub directory of my node project (called <strong>my-native-module</strong>). It contains the <code>bindings.gyp</code>, the <code>hello-world.c</code>, etc.</p>
  <p>How can I now embed this into the project itself without making it an external project? How would I compile this? Is there a specific <code>npm</code> command for this?</p>
  <p>Here is the current directory structure of my project, with the native-module inside</p>
  <pre><code>+ my-native-module/...
  |  - binding.cc
  |  - binding.gyp
  |  - package.json
  |  - package-lock.json
  |
  + node_modules/
  |  - ...
  |  - ...
  | 
  + src/
  |  - foo1.js
  |  - foo2.js
  | 
  - package.json
  - package-lock.json
  </code></pre>