navigator.platform


navigator.platform 只读属性返回一个字符串,用于识别 Node.js 实例运行的平台。

【The navigator.platform read-only property returns a string identifying the platform on which the Node.js instance is running.】

console.log(`This process is running on ${navigator.platform}`);