1# VersionManagement 2 3The `Napi::VersionManagement` class contains methods that allow information 4to be retrieved about the version of Node-API and Node.js. In some cases it is 5important to make decisions based on different versions of the system. 6 7## Methods 8 9### GetNapiVersion 10 11Retrieves the highest Node-API version supported by Node.js runtime. 12 13```cpp 14static uint32_t Napi::VersionManagement::GetNapiVersion(Env env); 15``` 16 17- `[in] env`: The environment in which the API is invoked under. 18 19Returns the highest Node-API version supported by Node.js runtime. 20 21### GetNodeVersion 22 23Retrieves information about Node.js version present on the system. All the 24information is stored in the `napi_node_version` structure that is defined as 25shown below: 26 27```cpp 28typedef struct { 29 uint32_t major; 30 uint32_t minor; 31 uint32_t patch; 32 const char* release; 33} napi_node_version; 34```` 35 36```cpp 37static const napi_node_version* Napi::VersionManagement::GetNodeVersion(Env env); 38``` 39 40- `[in] env`: The environment in which the API is invoked under. 41 42Returns the structure a pointer to the structure `napi_node_version` populated by 43the version information of Node.js runtime. 44