File tree Expand file tree Collapse file tree 3 files changed +3019
-0
lines changed Expand file tree Collapse file tree 3 files changed +3019
-0
lines changed Original file line number Diff line number Diff line change 8
8
* [ Assertion Testing] ( assert.html )
9
9
* [ Buffer] ( buffer.html )
10
10
* [ C/C++ Addons] ( addons.html )
11
+ * [ C/C++ Addons - N-API] ( n-api.html )
11
12
* [ Child Processes] ( child_process.html )
12
13
* [ Cluster] ( cluster.html )
13
14
* [ Command Line Options] ( cli.html )
Original file line number Diff line number Diff line change @@ -215,6 +215,26 @@ Addon developers are recommended to use to keep compatibility between past and
215
215
future releases of V8 and Node.js. See the ` nan ` [ examples] [ ] for an
216
216
illustration of how it can be used.
217
217
218
+
219
+ ## N-API
220
+
221
+ > Stability: 1 - Experimental
222
+
223
+ N-API is an API for building native Addons. It is independent from
224
+ the underlying JavaScript runtime (ex V8) and is maintained as part of
225
+ Node.js itself. This API will be Application Binary Interface (ABI) stable
226
+ across version of Node.js. It is intended to insulate Addons from
227
+ changes in the underlying JavaScript engine and allow modules
228
+ compiled for one version to run on later versions of Node.js without
229
+ recompilation. Addons are built/packaged with the same approach/tools
230
+ outlined in this document (node-gyp, etc.). The only difference is the
231
+ set of APIs that are used by the native code. Instead of using the V8
232
+ or [ Native Abstractions for Node.js] [ ] APIs, the functions available
233
+ in the N-API are used.
234
+
235
+ The functions available and how to use them are documented in the
236
+ section titled [ C/C++ Addons - N-API] ( n-api.html ) .
237
+
218
238
## Addon examples
219
239
220
240
Following are some example Addons intended to help developers get started. The
You can’t perform that action at this time.
0 commit comments