See More

#include #include using namespace node; using namespace v8; static Handle foo(const Arguments& args) { return String::New("Hello World"); } extern "C" { static void init(Handle target) { NODE_SET_METHOD(target, "foo", foo); } NODE_MODULE(cpphello, init); }