Pospelove / napi-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

napi-test

Create NodeJS modules in C with standalone CMakeLists + vcpkg

microsoft/vcpkg#26768

testing with docker

docker build -t napitest .
docker run --rm napitest

testing under windows

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

expected result

{ function: [Function: doSomethingUseful] }
{ result: undefined }

About


Languages

Language:C 47.1%Language:Dockerfile 25.7%Language:CMake 17.3%Language:JavaScript 9.8%