#include "functions.h" using v8::FunctionTemplate; // NativeExtension.cc represents the top level of the module. // C++ constructs that are exposed to javascript are exported here NAN_MODULE_INIT(InitAll) { Nan::Set(target, Nan::New("sendDummyKeystroke").ToLocalChecked(), Nan::GetFunction(Nan::New(sendDummyKeystroke)).ToLocalChecked()); // Passing target down to the next NAN_MODULE_INIT MyObject::Init(target); } NODE_MODULE(NativeExtension, InitAll)