code: function stdio( ioname, buffer ){
          child[ioname].on('data', data => {
            buffer += data;
            let line = data.toString().trim();
            if( line.length ){ console.log( line ); }
          });
        }
docs: handle stdio