- spread-diff-patch API
- Reads a CSV file and returns an array of arrays containing the data.
filePath
(string): The path to the CSV file.
T[][]
: An array of arrays representing the CSV data.
- Reads a Workbook file and returns the workbook data.
filePath
(string): The path to the Workbook file.
any
: The workbook data.
- Calculates the differences between two arrays of arrays and returns a
DiffAOA
instance.
actual
(T[][]): The actual data array.expected
(T[][]): The expected data array.
DiffAOA<T>
: An instance ofDiffAOA
representing the differences between the two arrays.
- Calculates the differences between two Workbook files and returns a
DiffWorkBook
instance.
actual
(WorkBook): The actual workbook data.expected
(WorkBook): The expected workbook data.
DiffWorkBook
: An instance ofDiffWorkBook
representing the differences between the two workbooks.
- Represents the differences between two Workbook files.
format(formatter: Formatter<any>): any
: Formats the differences using a specified formatter.
CSV
: A formatter class specifically designed for CSV output.
WorkbookFormatter
: A formatter class specifically designed for Workbook (e.g., Excel) output.