1
1
# ** Node.js API (N-API) Package**
2
2
3
- This package contains ** header-only C++ wrapper classes** for the ** ABI-stable
4
- Node.js API** also known as ** N-API** , providing C++ object model and exception
5
- handling semantics with low overhead. It guarantees backward compatibility with
6
- use with older versions of Node.js that do not have N-API built-in.
7
-
8
- Node.js API guarentees the ** API** and ** ABI** compatibility across different
9
- version of Node.js. So if you switch to a
10
- different version of Node.js you must not reinstall and maybe recompile the
11
- Addon.
12
-
13
- N-API is an API for building native Addons. It is independent from the underlying
14
- JavaScript runtime (ex V8) and is maintained as part of Node.js itself. This API
15
- will be Application Binary Interface (ABI) stable across versions of Node.js. It
16
- is intended to insulate Addons from changes in the underlying JavaScript engine
17
- and allow modules compiled for one version to run on later versions of Node.js
18
- without recompilation.
3
+ This package contains ** header-only C++ wrapper classes** for the
4
+ ** ABI-stable Node.js API** also known as ** N-API** , providing C++ object
5
+ model and exception handling semantics with low overhead. It guarantees
6
+ backward compatibility when used with older versions of Node.js that do
7
+ not have N-API built-in.
8
+
9
+ N-API is an API for building native addons. It is independent from the
10
+ underlying JavaScript runtime (e.g. V8 or ChakraCore) and is maintained as
11
+ part of Node.js itself. This API will be Application Binary Interface (ABI)
12
+ stable across versions and flavors of Node.js. It is intended to insulate
13
+ native addons from changes in the underlying JavaScript engine and allow
14
+ modules compiled for one version to run on later versions of Node.js without
15
+ recompilation. N-API guarantees the ** API** and ** ABI** compatibility across
16
+ different versions of Node.js. So if you switched to a different version of
17
+ Node.js, you would not need to reinstall or recompile the native addon.
19
18
20
19
APIs exposed by N-API are generally used to create and manipulate JavaScript
21
20
values. Concepts and operations generally map to ideas specified in the
@@ -32,9 +31,9 @@ values. Concepts and operations generally map to ideas specified in the
32
31
33
32
## ** Current version: 1.1.0**
34
33
35
- (See [ CHANHELOG .md] ( CHANGELOG.md ) for complete Changelog)
34
+ (See [ CHANGELOG .md] ( CHANGELOG.md ) for complete Changelog)
36
35
37
- [ ![ NPM] ( https://nodei.co/npm/node-addon-api.png?downloads=true&downloadRank=true )] ( https://nodei.co/npm/dode -addon-api/ ) [ ![ NPM] ( https://nodei.co/npm-dl/node-addon-api.png?months=6&height=1 )] ( https://nodei.co/npm/dode -addon-api/ )
36
+ [ ![ NPM] ( https://nodei.co/npm/node-addon-api.png?downloads=true&downloadRank=true )] ( https://nodei.co/npm/node -addon-api/ ) [ ![ NPM] ( https://nodei.co/npm-dl/node-addon-api.png?months=6&height=1 )] ( https://nodei.co/npm/node -addon-api/ )
38
37
39
38
<a name =" setup " ></a >
40
39
0 commit comments