Create NodeJS modules in C with standalone CMakeLists + vcpkg
docker build -t napitest .
docker run --rm napitest
In vcpkg:
./bootstrap-vcpkg.bat
vcpkg install node-api-headers:x64-windows
In napi-test:
mkdir build
cd build
cmake .. -A x64
cmake --build . --config Debug
node index.js
{ function: [Function: doSomethingUseful] }
{ result: undefined }