What to use on Nodejs addons. Node.h or Napi.h

  add-on, c++, node.js

I have some pretty simple questions.

  1. What is the main difference between node.h and napi.h.
  2. What should I use for normal/personal use case.
  3. Why are there more "nodejs" headers. (node.h, napi.h, nan.h, node_api.h, …)

I have looked on Internet for answers on these questions but I could find any.
I’m sorry if this is one of the must know things, but I started with addons recently.

Source: Windows Questions C++

LEAVE A COMMENT