A simple wrapper over child_process.spawn()
import { spawnProxy: $ } from 'spawn-proxy';
$.ls['-al']({
stdio: ['ignore', process.stdout, process.stderr],
}).then(
() => console.log('done'),
error => console.log({ error })
);
const { spawnProxy: $ } = require('spawn-proxy');
$.ls['-al']({
stdio: ['ignore', process.stdout, process.stderr],
}).then(
() => console.log('done'),
error => console.log({ error })
);