As an alternative to "symbol-based" registration, an addon can call napi_module_register when its dynamic library is loaded.
This should "register" the module into the host, making it available to be initialized when require is called with its filename.
As an alternative to "symbol-based" registration, an addon can call
napi_module_registerwhen its dynamic library is loaded.This should "register" the module into the host, making it available to be initialized when
requireis called with its filename.