阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js N-API napi_get_node_version

      Node.js N-API napi_get_node_version

      新增于: v8.4.0 N-API version: 1 typedef struct { uint32_t major; uint32_t minor; uint32_t patch; const char* release; } napi_node_version;

      napi_status napi_get_node_version(napi_env env, const napi_node_version** version); [in] env: The environment that the API is invoked under. [out] version: A pointer to version information for Node.js itself. Returns napi_ok if the API succeeded.

      This function fills the version struct with the major, minor, and patch version of Node.js that is currently running, and the release field with the value of process.release.name.

      The returned buffer is statically allocated and does not need to be freed.


      更多内容请参考:Node.js N-API,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录