@ 260528.1
current
#include <napi.h>
#include "myobject.h"

Napi::Object CreateObject(const Napi::CallbackInfo& info) {
  return MyObject::NewInstance(info.Env(), info[0]);
}

Napi::Object InitAll(Napi::Env env, Napi::Object exports) {
  Napi::Object new_exports =
      Napi::Function::New(env, CreateObject, "CreateObject");
  return MyObject::Init(env, new_exports);
}

NODE_API_MODULE(addon, InitAll)