The simplest possible "hello world" node.js module written in C++
C++ JavaScript Python
Permalink
Failed to load latest commit information.
.gitignore Initial commit Mar 12, 2011
.travis.yml set build env var to use g++-4.8 Sep 16, 2015
README.md
binding.gyp
cpphello.cpp
package.json
test.js refactor for node-gyp Mar 25, 2015

README.md

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://github.com/lupomontero/node-cpphello.git
cd node-cpphello
node-gyp configure build
npm test

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

Further reading: