I'm currently working with trying to call c++ in js. I've been successful using nan for passing and returning primitives.
But when I tried passing/returning
std::string it got harder. I read in the addon docs, "Unless there is a need for direct access to functionality which is not exposed by N-API, use N-API."
Any advise on how to proceed? Should I stick with
nan or switch to
N-API? I'm eventually going to work with c++ classes and structs.