Node.js:Addons
lastmod 2026-11-10created 2017-02-022 edits
Node.js Addons are dynamically linked libraries written in C or C++ and loaded in Node.js with require like ordinary modules. They are used to bind existing native libraries or to implement performance-critical parts, and node-gyp handles the build. There are two approaches: using the V8 API directly, and Node-API (N-API), which guarantees compatibility across versions.