Provide portable Unix shell commands out of shelljs for Node.js.
bshell means "better shell".
With npm
npm i bshell
With yarn
yarn add bshell
With pnpm
pnpm add bshell
import { Ps } from 'bshell';
const ps = new Ps();
ps.execute().then((res) => {
console.log(res); // [{ pid: 123, tty: 'ttys001' }, ...]
});