File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,14 @@ the use of the C based [N-API](https://nodejs.org/dist/latest/docs/api/n-api.htm
4
4
provided by Node.js when using C++. It provides a C++ object model
5
5
and exception handling semantics with low overhead.
6
6
7
+ There are three options for implementing addons: N-API, nan, or direct
8
+ use of internal V8, libuv and Node.js libraries. Unless there is a need for
9
+ direct access to functionality which is not exposed by N-API as outlined
10
+ in [ C/C++ addons] ( https://nodejs.org/dist/latest/docs/api/addons.html )
11
+ in Node.js core, use N-API. Refer to
12
+ [ C/C++ addons with N-API] ( https://nodejs.org/dist/latest/docs/api/n-api.html )
13
+ for more information on N-API.
14
+
7
15
N-API is an ABI stable C interface provided by Node.js for building native
8
16
addons. It is independent from the underlying JavaScript runtime (e.g. V8 or ChakraCore)
9
17
and is maintained as part of Node.js itself. It is intended to insulate
You can’t perform that action at this time.
0 commit comments