Skip to content

ywalterh/node-addon-examples

 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • C++ 81.8%
  • JavaScript 10.4%
  • Python 7.8%