In Node C++ Addon, I can return a String like this:
void Method(const FunctionCallbackInfo<Value>& args) {
Isolate* isolate = args.GetIsolate();
args.GetReturnValue().Set(
String::NewFromUtf8(isolate, "hello")
.ToLocalChecked()
);
}
How can I achieve the same but setting a boolean value instead of a string?