#include <iostream>
#include "helloworld.hh"
#include "SwiftPackage.hh"

std::string helloworld::HelloWorld() {
  SayHello();
  return "Hello World";
}

Napi::String helloworld::HelloWorldWrapped(const Napi::CallbackInfo& info) {
  Napi::Env env = info.Env();
  Napi::String returnValue = Napi::String::New(env, helloworld::HelloWorld());
  return returnValue;
}

Napi::Object helloworld::Init(Napi::Env env, Napi::Object exports) {
  exports.Set("HelloWorld", Napi::Function::New(env, helloworld::HelloWorldWrapped));
  return exports;
}

