#include #include using namespace v8; static int c = 0; static Handle Hello(const Arguments& args) { HandleScope scope; return scope.Close(Integer::New(c++)); } extern "C" void init (Handle target) { HandleScope scope; NODE_SET_METHOD(target, "hello", Hello); } NODE_MODULE(binding, init);