get-uv-event-loop-napi-h

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

MIT 6 个版本
安装
npm install get-uv-event-loop-napi-h
yarn add get-uv-event-loop-napi-h
pnpm add get-uv-event-loop-napi-h
bun add get-uv-event-loop-napi-h
README

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);
版本列表
1.0.6 2020-01-24
1.0.5 2018-10-30
1.0.4 2018-10-30
1.0.2 2017-11-24
1.0.1 2017-11-24
1.0.0 2017-11-24