JSPM

@napi-ffi/get-uv-event-loop-napi-h

1.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15
  • Score
    100M100P100Q64461F
  • License MIT

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

Package Exports

  • @napi-ffi/get-uv-event-loop-napi-h
  • @napi-ffi/get-uv-event-loop-napi-h/get-paths.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@napi-ffi/get-uv-event-loop-napi-h) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@napi-ffi/get-uv-event-loop-napi-h

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

CI NPM Version NPM Downloads

Forked from node-ffi-napi/get-uv-event-loop-napi-h to maintain and modernize the project while preserving the original APIs.

Installation

Install with npm:

$ npm install @napi-ffi/get-uv-event-loop-napi-h

Usage

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