Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Repository used to make the N-API headers more accessible

License

NotificationsYou must be signed in to change notification settings

nodejs/node-api-headers

Introduction

node-api-headers contains the header files for the C-based Node-APIprovided by Node.js. Node-API is an API for building native addons thatguarantees the ABI (Application Binary Interface) stability across versionsof Node.js (see:Node-API).

Node-API headers are in theinclude folder. The Node-APIs that provideECMAScript features from native code can be found injs_native_api_types.handjs_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 ofNode-API outside of Node.js considering that for those implementations theNode.js specific APIs may not be applicable.

node-api-headers is also a package published onnpm that could be usedin 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 releasedseparately from the Node.js version stream (e.g.19.8.1) and changes arebackported 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-APIheaders.

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-APIgrouped 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

The project is maintained by theNode-API team members.

License

Licensed underMIT

About

Repository used to make the N-API headers more accessible

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp