Skip to content


Subversion checkout URL

You can clone with
Download ZIP
The simplest possible "hello world" node.js module written in C++
C++ JavaScript Python
Branch: master

Merge pull request #4 from lupomontero/node-gyp

Refactor for node-gyp instead of node-waf
latest commit 856fac88ed
@lupomontero authored
Failed to load latest commit information.
.travis.yml add travis build config
binding.gyp refactor for node-gyp
cpphello.cpp refactor for node-gyp
package.json refactor for node-gyp
test.js refactor for node-gyp

The simplest possible "hello world" node.js module written in C++

Build Status

This is a super simple module written as a C++ binding. It does not show how to handle async io, but at least it illustrates how the code hooks into node and v8. This is just a place to start...

Download, build and test instructions:

# Install node-gyp globally if not installed yet
npm install -g node-gyp

# Clone, build and test
git clone git://
cd node-cpphello
node-gyp configure build
npm test

More info here: Writing node.js modules in C++

Further reading:

Something went wrong with that request. Please try again.