lib/dos2unix.js
function() {
        var bomBuffer = this.read(bytesPerBom);
        if (bomBuffer == null || bomBuffer.length !== bytesPerBom) {
          status = 'error';
          processor.emit('processing.error', {
            file: filePath,
            message: 'Skipping file with errors during read: Unable to read past the expected BOM'
          });
          return callback(null, status);
        }
      }
function() {
        var bomBuffer = this.read(bytesPerBom);
        if (bomBuffer == null || bomBuffer.length !== bytesPerBom) {
          status = 'error';
          processor.emit('processing.error', {
            file: filePath,
            message: 'Skipping file with errors during read: Unable to read past the expected BOM'
          });
          return callback(null, status);
        }
      }
function ( ) { var bomBuffer = this . read ( bytesPerBom ) ; if ( bomBuffer == null || bomBuffer . length !== bytesPerBom ) { status = 'error' ; processor . emit ( 'processing.error' , { file : filePath , message : 'Skipping file with errors during read: Unable to read past the expected BOM' } ) ; return callback ( null , status ) ; } }
Fast-forward past the BOM if present
Fast - forward past the BOM if present