/node-addon-examples

Node.js C++ addon examples from http://nodejs.org/docs/latest/api/addons.html

Primary LanguageC++

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 ./