Forked from node-ffi-napi/get-uv-event-loop-napi-h to maintain and modernize the project while preserving the original APIs.
Install with npm:
$ npm install @napi-ffi/get-uv-event-loop-napi-hIn your binding.gyp:
'include_dirs': ["<!@(node -p \"require('@napi-ffi/get-uv-event-loop-napi-h').include\")"],(Just have "<!@(node -p \"require('@napi-ffi/get-uv-event-loop-napi-h').include\")" somewhere in that list, ok?)
In your C code:
#include <get-uv-event-loop-napi.h>
uv_loop_t* loop = get_uv_event_loop(env);