get-uv-event-loop-napi-h

1.0.6 • Public • Published

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);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.6
    337,820
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.6
    337,820
  • 1.0.5
    10,729
  • 1.0.4
    6
  • 1.0.2
    126
  • 1.0.1
    6
  • 1.0.0
    9

Package Sidebar

Install

npm i get-uv-event-loop-napi-h

Weekly Downloads

93,807

Version

1.0.6

License

MIT

Unpacked Size

8.27 kB

Total Files

8

Last publish

Collaborators

  • addaleax