import Forrest from 'forrest';
// run a simple command that exits by itself
Forrest.run('ls').then(output => console.log(output));
// run a service and do soemthing when ready
var service = Forrest.run(, {
service: './my-server.js',
expect: /listening on 3000/g,
});
// do something when the service is ready
service.then(() => console.log('MyServer is ready!'));
// do something else if the service fails
service.catch(err) => console.log('Error', err));