issues
search
mapbox
/
node-cpp-skel
Skeleton for bindings to C++ libraries for Node.js using node-addon-api
Creative Commons Zero v1.0 Universal
72
stars
10
forks
source link
Use NODE_GYP_MODULE_NAME
#132
Closed
springmeyer
closed
6 years ago
springmeyer
commented
6 years ago
This is from the docs at
https://nodejs.org/api/addons.html
It avoids needing to hardcode the "module" keyword inside the C++ code. This helps users, that write code based on node-pre-gyp, avoid having to update the module name in two places.