You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,11 @@ m.on('+', line => {
48
48
m.diff('tests/file1.txt', 'tests/file2.txt');
49
49
```
50
50
51
+
**TextFileDiff** constructor also accept optional options object. Valid options are:
52
+
1.`skipHeader` - boolean indicating if first line should be skipped
53
+
2.`charset` - default to `utf8`
54
+
3.`compareFn` - line comparer function that take in two line (line1 and line2), and `return line1 > line2 ? 1 : (line1 < line2 ? -1 : 0)` allowing you to define how you want to perform line compare.
0 commit comments