Skip to content

C function to get the current libuv event loop for N-API

License

Notifications You must be signed in to change notification settings

SeUkKim/get-uv-event-loop-napi-h

 
 

Repository files navigation

get-uv-event-loop-napi-h

C function to get the current libuv event loop for N-API

Greenkeeper badge

NPM Version NPM Downloads Build Status Coverage Status Dependency Status

Installation

Install with npm:

$ npm install get-uv-event-loop-napi-h

Usage

In your binding.gyp:

    'include_dirs': ["<!@(node -p \"require('get-uv-event-loop-napi-h').include\")"],

(Just have "<!@(node -p \"require('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);

About

C function to get the current libuv event loop for N-API

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 76.1%
  • JavaScript 23.9%