npm库-execa 发表于 2022-03-10 更新于 2022-10-16execa: 比 child_process 更好用的执行 shell 脚本的工具execa-exp.js123const jiti = require('jiti')();jiti('./');index.ts123456789101112131415import { execa } from 'execa';(async () => { { const { stdout } = await execa('ls', ['-al', '.']); console.log(stdout); }})();52c22e4a-02a2-4f6d-8053-219fa134a725