#include #include #include static void Method(const v8::FunctionCallbackInfo& args) { v8::Isolate* isolate = args.GetIsolate(); args.GetReturnValue().Set( v8::String::NewFromUtf8(isolate, "hello world").ToLocalChecked()); } static void InitModule(v8::Local exports, v8::Local module, v8::Local context) { NODE_SET_METHOD(exports, "default", Method); } NODE_MODULE_CONTEXT_AWARE(Binding, InitModule)