Skip to content

Choice between NAN and node-addon-api #684

Closed

Description

@legendecas

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.

Activity

  1. mhdawson commented on Mar 19, 2020

    @mhdawson
    Member

    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.

  2. mhdawson commented on Mar 23, 2020

    @mhdawson
    Member

    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.

  3. added a commit that references this issue on Dec 7, 2020
  4. mhdawson commented on Dec 7, 2020

    @mhdawson
    Member

    PR to address: #849

  5. added a commit that references this issue on Dec 9, 2020
  6. mhdawson commented on Dec 9, 2020

    @mhdawson
    Member

    PR landed closing.

  7. added a commit that references this issue on Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions