mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-08-19 20:40:21 +00:00
392 B
392 B
demo project showing how to use ScriptX to build node.js addon
- use cmake-js to build
node.jsaddon - write CMakeLists.txt using cmake-js. see
CMakeLists.txtfor detail. - inside the initializer, use special
V8Engineconstructor. seesrc/addon.ccfor detail. - build and run using
npm i -g cmake-js # install cmake-js
npm run test # build & run test