Node.js · Senior · Question 52 of 75
What is Node-API (N-API)?
- 1An API for managing npm packages
- ✓Correct answer: A stable C API for native addons that stays ABI-compatible across Node.js versions
- 3The REST API of nodejs.org
Explanation
Addons built on Node-API don't need recompiling for each Node.js major version. Many projects now use Rust (napi-rs) or WebAssembly instead of C++.