Hello world app packaged with node-pre-gyp


Sample application of a Node C++ addon packaged with node-pre-gyp.

If you are interested in learning how to write C++ addons see the official guide.

This repo is intended as starter code for your own C++ module - feel free to copy and modify. The docs below are meant to be a template for how you might document your module once packaged with node-pre-gyp.

  • Node.js 0.10.x, 0.12.x, 4, or 5

Install from binary:

npm install

Install from source:

npm install --build-from-source

The node-pre-gyp tool is used to handle building from source and packaging.

Simply run:

./node_modules/.bin/node-pre-gyp build
./node_modules/.bin/node-pre-gyp build package
./node_modules/.bin/node-pre-gyp publish