node_api_get_module_file_name

Function node_api_get_module_file_name 

Source
pub unsafe extern "C" fn node_api_get_module_file_name(
    env: napi_env,
    result: *mut *const c_char,
) -> napi_status
Available on crate features napi and api-11 only.
Expand description

Obtains the absolute path of the location, from which the addon is loaded.

§Arguments

  • env - Current running virtual machine context.

  • result - The absolute path of the location of the loaded addon.

§Returns

  • Returns the function execution status.

Available since API-level: 11