- a simple parameter hello world example
- a more complex async worker hello world example
- build in the new Node.js N-API (ABI)
- using the C++ wrapper node-addon-api
- Node.js >=
8.6.0
- yarn
npm i -g yarn
- CPP compiler like gcc
yarn
# make sure that node-gyp installation succeedsyarn configure
# prepares MAKE configurationyarn build
# builds native addon to /buildyarn start
# runs Javascript that executes native addon's functions
/lib/*
javascript source/src/*
C++ native addon source./binding.gyp
describes addon configuration for node-gyp./addon.js
uses bindings module to export native addon./index.js
requires javascript version of addon and executes