You need node-gyp and allI hope that after reading this tutorial you will no longer think that its difficult to create, build and test out customized C/ C library based, Node.js addons. Shared library - pack your C routines in a shared library (dll) and call those routines from Node.js directly. Node.js Addon - compile your C code as a native Node.js module/addon.Getting the tutorial code. C Tutorial.
In this tutorial we will create some C functions and call them as addons from node.In the init function we define the exports of our module.