Description
Node-API modules can declare a version that they want to be initialized with, either:
- By setting
nm_version
in thenapi_module
passed tonapi_module_register
(depends on Support module registration via calls tonapi_module_register
#3). - By exporting a
node_api_module_get_api_version_v1
function (of typenode_api_addon_get_api_version_func
).
As per https://nodejs.org/docs/latest/api/n-api.html#node-api-version-matrix I believe this should default to 8 if not explicitly provided by the addon.