See More

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