Node.js C++ addon examples from http://nodejs.org/docs/latest/api/addons.html
C++ JavaScript Python
Latest commit 6a51626 Aug 7, 2015 @rvagg rvagg update nan dep version

README.md

Node.js Addon Examples

See the Node.js C++ addons page for details of the examples here.

Each directory contains a subdirectory for:

  • Node 0.10: Mostly compatible with Node 0.8 and even 0.6, older style V8 programming
  • Node 0.12: Newer style V8 programming, compatible with Node 0.11+
  • NAN: The example rewritten using NAN for compatibility with Node 0.8 -> 0.11+

You will need node-gyp installed as a global:

$ sudo npm install node-gyp -g

In each example directory, run:

$ npm install
$ node-gyp rebuild
$ node ./