提供shelljs之外的一些便捷的 nodejs 命令。
bshell(better shell)意思是更好的 shell。
使用 npm
npm i bshell
使用 yarn
yarn add bshell
使用 pnpm
pnpm add bshell
import { Ps } from 'bshell';
const ps = new Ps();
ps.execute().then((res) => {
console.log(res); // [{ pid: 123, tty: 'ttys001' }, ...]
});