It would be really useful if one could get the output of commands in real time as they are written to stdout with a readable stream instead of awaiting for the command to exit. For example:
const pingStream = $.stream`ping 8.8.8.8`
pingStream.on('data', () => {
console.log('ping wrote to stdout');
});
pingStream.on('end', () => {
console.log('ping terminated with exit code 0');
});
pingStream.on('error', () => {
console.log('ping terminated with an error');
});