Node Native Extension
Node Addon Methods
Node Addon Workflow
Deep Analysis
[DeepDive] NodeJS C++ Addon 깊게 입문하기
Native Extention에 대해 설명하기에 앞서, 먼저 Node.JS 가 어떻게 구성되어 있는지에 대해 알아야 합니다. Node.JS 에서 실행가능한 프로그래밍 언어입니다. 자바스크립트 언어로 작성된 코드를 실행해주는 엔진입니다. 자바스크립트의 객체를 생성하거나, 함수를 호출하는 방법과 같은 매커니즘을 정의합니다. 비동기 실행과 라이프 사이클을 제공하는 C 라이브러리입니다. Node.JS의 모든 비동기 동작은 LibUv 가 관리합니다.
https://aerocode.net/341
![[DeepDive] NodeJS C++ Addon 깊게 입문하기](https://www.notion.so/image/https%3A%2F%2Fk.kakaocdn.net%2Fdn%2FcALM00%2FbtqCD8APV9Z%2FSUSQI5BVUk3uZpahWDIqTk%2Fimg.jpg?table=block&id=9226043b-c53a-404c-ae36-2914e936a0fd&cache=v2)
Method Choosing Techique
Node JS addons - NAN vs N-API?
I am looking to working on a project using node js addons with C++. I came across two abstract library NAN and N-API that I can use. However I am unable to decide which one I should use. I was not ...
https://stackoverflow.com/questions/54740947/node-js-addons-nan-vs-n-api
Addon Suggestion
nodejs/node
Addons are dynamically-linked shared objects written in C++. The function can load Addons as ordinary Node.js modules. Addons provide an interface between JavaScript and C/C++ libraries. There are three options for implementing Addons: N-API, nan, or direct use of internal V8, libuv and Node.js libraries.
https://github.com/nodejs/node/blob/master/doc/api/addons.md#c-addons
Official Examples
nodejs/node-addon-examples
Node.js C++ addon examples from http://nodejs.org/docs/latest/api/addons.html - nodejs/node-addon-examples
https://github.com/nodejs/node-addon-examples
nodejs/abi-stable-node-addon-examples
This repository is the home of the Addon Examples as extended for the proof of concept work being done to develop an ABI stable API for use my node modules. For more details please read the node-eps covering this effort.
https://github.com/nodejs/abi-stable-node-addon-examples

Seonglae Cho