8000 GitHub - andreek/node-addon-api
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

andreek/node-addon-api

 
 

Repository files navigation

Node.js API (N-API) Package

This package contains header-only C++ wrapper classes for the ABI-stable Node.js API also known as N-API, providing C++ object model and exception handling semantics with low overhead. It guarantees backward compatibility with use with older versions of Node.js that do not have N-API built-in.

Node.js API guarentees the API and ABI compatibility across different version of Node.js. So if you switch to a different version of Node.js you must not reinstall and maybe recompile the Addon.

N-API is an API for building native Addons. It is independent from the underlying JavaScript runtime (ex V8) and is maintained as part of Node.js itself. This API will be Application Binary Interface (ABI) stable across versions of Node.js. It is intended to insulate Addons from changes in the underlying JavaScript engine and allow modules compiled for one version to run on later versions of Node.js without recompilation.

APIs exposed by N-API are generally used to create and manipulate JavaScript values. Concepts and operations generally map to ideas specified in the ECMA262 Language Specification.

Current version: 1.1.0

(See CHANHELOG.md for complete Changelog)

NPM NPM

Setup

API Documentation

Examples

Are you new to N-API? Take a look at our examples

Tests

To run the N-API tests do:

npm install
npm test

Take a look and get inspired by our test suite

More resource and info about native Addons

WG Members / Collaborators

Name GitHub link
Anna Henningsen addaleax
Arunesh Chandra aruneshchandra
Benjamin Byholm kkoopa
Gabriel Schulhof gabrielschulhof
Hitesh Kanwathirtha digitalinfinity
Jason Ginchereau jasongin
Michael Dawson mhdawson
Sampson Gao sampsongao
Taylor Woll boingoing

Licensed under MIT

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 83.1%
  • C 8.4%
  • JavaScript 8.0%
  • Python 0.5%
0