You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 17, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 17, 2023. It is now read-only.
I need to think through the implications of using N-API instead of / adjacent to(?) NaN and just in general with this tool, but I was largely waiting for things to stabilize. I haven't completely kept up with that recently so I'll need to take a look, but I'll put this high on my list for the next major release as I definitely want to support it (it seems like its the intended path forward).
Notice the include_directories statement there for node-addon-api (which is separate from the officially support node_api headers bundled with the runtime itself). This isn't that hard to do frankly and maybe it's better if it's kept separate of the runtime headers regardless. Not sure.
Activity
computerquip-streamlabs commentedon Nov 1, 2018
Actually, I guess I can choose just any given runtime that supports a given version of N-API? Herm.... some clarification on this would be cool.
computerquip-streamlabs commentedon Nov 2, 2018
Seems it's difficult to get node-addon-api into the include path reliably. That would be great to have.
cjntaylor commentedon Nov 2, 2018
I need to think through the implications of using N-API instead of / adjacent to(?) NaN and just in general with this tool, but I was largely waiting for things to stabilize. I haven't completely kept up with that recently so I'll need to take a look, but I'll put this high on my list for the next major release as I definitely want to support it (it seems like its the intended path forward).
computerquip-streamlabs commentedon Nov 8, 2018
I've made an napi module using this cmake module. The example can be found here: https://github.com/computerquip-streamlabs/node-win32-np/blob/master/CMakeLists.txt
Notice the include_directories statement there for node-addon-api (which is separate from the officially support node_api headers bundled with the runtime itself). This isn't that hard to do frankly and maybe it's better if it's kept separate of the runtime headers regardless. Not sure.
Lokomojo commentedon May 17, 2021
For the C++ node-addon-api:
Just
npm install --save node-addon-apiand add this to your existing node-cmake CMakeLists.txt