Node Addone Examples with PoC ABI stable API for native modules
C++ JavaScript Python
Latest commit 3133765 Jan 13, 2017 @ianwjhalliday ianwjhalliday Update examples to use with_methods to create ctor
Use napi_create_constructor_for_wrap_with_methods to create constructor
function objects that have methods hooked up on their .prototype object.

This should be the way to create a constructor function object with
methods for performance reasons on V8.  The previous method is slow and
thus misleading to have as the example code for how to write a native
addon with NAPI.

README.md

Node.js Addon Examples - ABI Stable PoC

This repository is the home of the Addon Examples as extended for the proof of concept work being done to develop an ABI stable API for use my node modules.

For more details please read the node-eps covering this effort. The current PR for the eps is: https://github.com/nodejs/node-eps/pull/20

$ sudo npm install node-gyp -g

In each example directory, run:

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