Node GYP Notion
Node GYP Commands
Great Examples
nodejs/abi-stable-node-addon-examples
To get started let's make a small addon which is the C++ equivalent of the following JavaScript code: First we need to set up an npm-compatible package. Use npm init in a new directory to create the skeleton package.json. Next we need to install .
https://github.com/nodejs/abi-stable-node-addon-examples/tree/master/1_hello_world
- gcc compile
Node.js 용 c++ Addon을 gcc로 컴파일하기 (node-gyp 없이)
획기적인 생산성을 제공하기로 유명한데,그래도 저같은 C 개발자가 처음 Node.js 프로젝트에 합류했을 때에는 여전히 일부 모듈만이라도 C로 개발하고 싶은 욕구가 마음 속 깊은 곳에서 부터 꿈틀꿈틀댑니다. 또는 내가 만든 C/C++ 라이브러리를 Javascript Language에도 binding해서 제공하고 싶다면 비슷한 욕구가 생길 것입니다. Node.js에서 require로 load해 쓸 수 있는 이런 C/C++로 제작된 Shared Object를 Addon이라 부릅니다.
https://z-wony.tistory.com/12
- node 자체에서 c++ api 호출함
Node.js에서 C++ API를 호출하는 방법 - 이상한모임
Node.js의 코드는 C++과 JavaScript(이하 JS)로 구현되어 있고, JS 코드에서 C++ API를 호출하는 구조로 되어있는데, JS에서 어떻게 C++ API를 호출하는 걸까?
http://blog.weirdx.io/post/35500

