📅  最后修改于: 2022-03-11 14:51:38.264000             🧑  作者: Mango
const system = require('system-commands')
system('ls').then(output => {
console.log(output)
}).catch(error => {
console.error(error)
})