#include #include using namespace v8; extern "C" { void init(Handle target); } Handle Method(const Arguments& args) { HandleScope scope; return scope.Close(String::New("world")); } void init(Handle target) { NODE_SET_METHOD(target, "hello", Method); }