Interface FileCompareHandlers

Hierarchy

  • FileCompareHandlers

Properties

defaultFileCompare: CompareFileHandler

Compares files based on their binary content.

This is the default file content comparator. It is used when compareContent is true and custom file comparator is not specified (ie. compareFileSync or compareFileAsync are 'undefined').

lineBasedFileCompare: CompareFileHandler

Compares files line by line.

These additional options are available:

  • ignoreLineEnding - true/false (default: false) - Ignore cr/lf line endings
  • ignoreWhiteSpaces - true/false (default: false) - Ignore white spaces at the beginning and ending of a line (similar to 'diff -b')
  • ignoreAllWhiteSpaces - true/false (default: false) - Ignore all white space differences (similar to 'diff -w')
  • ignoreEmptyLines - true/false (default: false) - Ignores differences caused by empty lines (similar to 'diff -B')

Generated using TypeDoc