Good question — it’s been awhile since I’ve done anything with native node.js addons so from what I recall, there’s no method to like get a handle on the console object from C++ and call a
log method on it or something. But you should just be able to write to stdout in your C++ and see it in your shell/terminal when you run it because your C++ is in the same process as your node.js and the shell is receiving all stdio from that process. So I think plain old
std::cout << "Hello \n"; would work.