@longmo-utils/node / getNodeVersion
Function: getNodeVersion()
ts
function getNodeVersion(): string;获取 Node.js 版本
Returns
string
Node.js 版本字符串
Example
ts
const version = getNodeVersion()
console.log(version) // 'v18.0.0'