Expand description
Node-API (N-API) support for loading native .node addons.
NapiLoader is an rquickjs module loader; add it to the loader tuple before
the generic file loaders. The executable must export its symbols (-rdynamic) so
that addons can resolve the napi_* functions at load time.
Structs§
- Napi
Loader - Loads
.nodefiles as modules whose default export is the addon’smodule.exports. Enumerable string keys that are valid identifiers are also exposed as named exports.