使用napi node_使用Napi / node-addon-api和Cmake的独立于Node.js版本的C ++ Native Addon
napinodeThisisatutorialforc++Node-addon-api/Napiaddonusingcmake.Napimakesitindependentofnode.jsversion,meansouraddonwillbecompatiblewithallfutureversionofnode.js.Cmakeisacross-platformcodecompilingt