Modified from https://github.com/nodejs/node-addon-examples/blob/main/src/1-getting-started/1_hello_world/
NOTE: Don't support nan because xmake-io/xmake-repo#10 (comment) and node_version.h is missing.
To get started let's make a small addon which is the C++ equivalent of the following JavaScript code:
module.exports.hello = function() { return 'world'; };