Movatterモバイル変換


[0]ホーム

URL:


Google Git
Sign in
chromium /external /github.com /nodejs /node-api-headers
Clone this repo:

Branches

Tags

More...
  1. d46edabchore: release v1.5.0 (#58)by github-actions[bot]· 6 months agoupstream/mainupstream/v1.5.0
  2. 64747b1feat: update headers from nodejs/node tag v23.6.0 (#57)by github-actions[bot]· 6 months ago
  3. adc76e7chore: release v1.4.0 (#55)by github-actions[bot]· 9 months agoupstream/v1.4.0
  4. 3336912feat: update headers from nodejs/node tag v23.1.0 (#56)by github-actions[bot]· 9 months ago
  5. e1b8febfeat(no-release): add conditional support in `#if` (#52)by Kevin Eady· 9 months ago

node-api-headers

Current Node-API version: 9

(SeeCHANGELOG.md for complete Changelog)

Introduction

node-api-headers contains the header files for the C-based Node-API provided by Node.js. Node-API is an API for building native addons that guarantees the ABI (Application Binary Interface) stability across versions of Node.js (see:Node-API).

Node-API headers are in theinclude folder. The Node-APIs that provide ECMAScript features from native code can be found injs_native_api_types.h andjs_native_api.h. The APIs defined in these headers are included innode_api_types.h andnode_api.h. The headers are structured in this way in order to allow implementations of Node-API outside of Node.js considering that for those implementations the Node.js specific APIs may not be applicable.

node-api-headers is also a package published onnpm that could be used in a process to compile and build native addons for Node.js.

Install

npm i node-api-headers

Versions

Node-API C headers are backward-compatible. Its version (e.g.8) is released separately from the Node.js version stream (e.g.19.8.1) and changes are backported to active Node.js LTS lines (e.g.16.x and18.x).

This package publishes semver-minor versions with new Node-API C headers changes. JS API breaking changes are published with new semver-major versions.

API

The module exports two propertiesinclude_dir andsymbols.

include_dir

This property is a string that represents the include path for the Node-API headers.

def_paths

This property is an object that has two keysjs_native_api_def andnode_api_def which represents the path of the module definition file for thejs_native_api andnode_api respectively.

symbols

This property is an object that represents the symbols exported by Node-API grouped by version and api types.

    V1:{        js_native_api_symbols:[// List of symbols in js_native_api.h for the version 1.],        node_api_symbols:[// List of symbols in node_api.h for the version 1]},// ...

Team members

Active

NameGitHub Link
Anna Henningsenaddaleax
Chengzhong Wulegendecas
Gabriel Schulhofgabrielschulhof
Hitesh Kanwathirthadigitalinfinity
Jim Schlightjschlight
Michael Dawsonmhdawson
Kevin EadyKevinEady
Nicola Del GobboNickNaso

Licensed underMIT


[8]ページ先頭

©2009-2025 Movatter.jp