Node encourages modular software development by supporting Modules. Modules are essentially a collection of files and directories that conform to specific requirements. Some background information about creating Node modules can be found here.
One of the real benefits of adopting Node is the comprehensive ecosystem of Node modules available to developers. The largest collection of Node modules is available from npm. The
npm command line tool is installed along with Node.
N-API is the technology that enables the development of Node native modules.
npm install again. Since N-API is ABI-stable, your module will continue to run even without recompilation.
An important adjunct to N-API, although not strictly a part of the main project, is the npm
node-addon-api module. The purpose of this module is to raise the N-API API from the level of “C” up to “C++“. For many users, the object model implemented by
node-addon-api makes the effort of creating N-API modules much easier and enjoyable.