You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
219 B

/**
* 环境探测
* */
const os = require('os')
// 获取系统信息
function getSystem(){
return {
hostname:os.hostname(),
os:os.type() + os.arch()
}
}
module.exports = {
getSystem
}