获取操作系统相关信息 引用 const os = require('os') os.cpus() 获取当前机器的CPU信息 console.log(os.cpus()) 打印结果: [ { model: 'Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz', speed: 2300, times: { user: 1332960, nice: 0, sys: 928720, idle: 5905010, irq: 0 } }, { model: 'Intel(R)…