node os模块
const os = require('os');
console.log(os.homedir());
console.log(os.hostname());
console.log(os.platform());
console.log(os.release());
console.log(os.type());
console.log(os.userInfo());
console.log(os.constants);
console.log(os.uptime());