Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
doc: add note about NODE_MODULE module_name requirement
module_name needs to match the final binary name
  • Loading branch information
defunctzombie authored and bnoordhuis committed Nov 28, 2011
1 parent eba1f7b commit 1c62e80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/addons.markdown
Expand Up @@ -51,6 +51,9 @@ Note that all Node addons must export an initialization function:

There is no semi-colon after `NODE_MODULE` as it's not a function (see `node.h`).

The `module_name` needs to match the filename of the final binary (minus the
.node suffix).

The source code needs to be built into `hello.node`, the binary Addon. To
do this we create a file called `wscript` which is python code and looks
like this:
Expand Down

0 comments on commit 1c62e80

Please sign in to comment.