| commit | ecefbdd00f2cd04eaf1c06b6481abe9b031b5f0b | [log] [tgz] |
|---|---|---|
| author | Kevin Eady <8634912+KevinEady@users.noreply.github.com> | Wed Feb 15 15:36:04 2023 |
| committer | GitHub <noreply@github.com> | Wed Feb 15 15:36:04 2023 |
| tree | e1d1c54d42ac784c55bbf9c4850a81750164fdef | |
| parent | 9b9e2b7dcdc7e79e83293cee91184a0ae34c9be2 [diff] |
Add helper scripts for updating headers and symbols.js (#7)
(See CHANGELOG.md for complete Changelog)
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 the include folder. The Node-APIs that provide ECMAScript features from native code can be found in js_native_api_types.h and js_native_api.h. The APIs defined in these headers are included in node_api_types.h and node_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 on npm that could be used in a process to compile and build native addons for Node.js.
npm i node-api-headers
The module exports two properties include_dir and symbols.
include_dirThis property is a string that represents the include path for the Node-API headers.
symbolsThis 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 ] }, // ...
| Name | GitHub Link |
|---|---|
| Anna Henningsen | addaleax |
| Chengzhong Wu | legendecas |
| Gabriel Schulhof | gabrielschulhof |
| Hitesh Kanwathirtha | digitalinfinity |
| Jim Schlight | jschlight |
| Michael Dawson | mhdawson |
| Kevin Eady | KevinEady |
| Nicola Del Gobbo | NickNaso |
Licensed under MIT