
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
node-addon-api-helper
Advanced tools
Simplify node-addon-api native binding development with C++ meta programming
Based on node-addon-api, node-addon-api-helper(naah) provides a more convenient, type-safe and boilerplate-less way to write Node.js C++ addons.
Features:
npm install node-addon-api node-addon-api-helper
Add following content to your GYP file.
{
'include_dirs': [
"<!(node -p \"require('node-addon-api').include_dir\")",
"<!(node -p \"require('node-addon-api-helper').include_dir\")",
]
}
naah heavily depends on C++17, if you haven't configured your project on C++17, have a look at naah.gypi as an example.
A hello world example :
#include <naah.h>
uint32_t add(uint32_t a, uint32_t b) {
return a + b;
}
NAAH_REGISTRATION {
naah::Registration::Function<add>("add");
}
NAAH_EXPORT
See naah directories in the fork of node-addon-examples for examples.
FAQs
Simplify node-addon-api native binding development with C++ meta programming
We found that node-addon-api-helper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.