native-module
v0.11.3
Published
Examples for writing native Node.js modules
Downloads
5
Readme
native-module
This project features example native code (i.e. C++) modules for Node.js. It is based on the code from the C/C++ Addons section of the Node.js API Documentation.
Installation
To build the modules, first install node-gyp.
sudo npm install -g node-gyp
Next, configure the project.
node-gyp configure
Now, build the modules.
node-gyp build
NOTE: The current version of the project supports Node.js v0.11.13. To make sure the examples run correctly, use that version.
Use
To run the provided examples, call node the ordinary way.
node index.js