You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've heard complaints that it's not clear which one is recommended in one specific scenario(NAN is still very useful if add-on is going to use v8's or libuv's APIs that are not exposed through N-API) to persons who are completely new to Node.js add-on development.
Searched on either node-addon-api's README and NAN's, also on google, there is no clear statement about this topic.
In discussion in the last N-API team meeting suggestion from @legendecas was that we take some of the text from the existing Node doc and to the node-addon-api repo.
Activity
mhdawson commentedon Mar 19, 2020
There is a recommendation in https://github.com/nodejs/node/blob/master/doc/api/addons.md#c-addons to use N-API unless you need functionality that it does not expose.
mhdawson commentedon Mar 23, 2020
In discussion in the last N-API team meeting suggestion from @legendecas was that we take some of the text from the existing Node doc and to the node-addon-api repo.
doc: clarify when to use N-API
mhdawson commentedon Dec 7, 2020
PR to address: #849
doc: clarify when to use N-API (#849)
mhdawson commentedon Dec 9, 2020
PR landed closing.
doc: clarify when to use N-API (#849)
doc: clarify when to use N-API (#849)
doc: clarify when to use N-API (#849)
doc: clarify when to use N-API (#849)