Skip to content

Latest commit

 

History

History
25 lines (13 loc) · 728 Bytes

README.md

File metadata and controls

25 lines (13 loc) · 728 Bytes

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