bin/cli.js
function listenForDevices() {
  console.log('Listening for connected devices... \n');

  usbmux.createListener()
    .on('error', onErr)
    .on('attached', function(udid) {
      console.log('Device found: ', udid);
    })
    .on('detached', function(udid) {
      console.log('Device removed: ', udid);
    });
}
function listenForDevices() {
  console.log('Listening for connected devices... \n');

  usbmux.createListener()
    .on('error', onErr)
    .on('attached', function(udid) {
      console.log('Device found: ', udid);
    })
    .on('detached', function(udid) {
      console.log('Device removed: ', udid);
    });
}
function listenForDevices ( ) { console . log ( 'Listening for connected devices... \n' ) ; usbmux . createListener ( ) . on ( 'error' , onErr ) . on ( 'attached' , function ( udid ) { console . log ( 'Device found: ' , udid ) ; } ) . on ( 'detached' , function ( udid ) { console . log ( 'Device removed: ' , udid ) ; } ) ; }
Listen for and report connected devices
Listen for and report connected devices