Native Nodejs Addons

It’s possible to create native plugins using c++. (N-API)
My question is that since Haxe can compile into c++ it is possible to create libraries that are called by Nodejs? Has anybody tried it? Thanks for any responses.