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
**TextFileDiff** constructor also accept optional options object. Valid options are:
56
56
1.`skipHeader` - boolean indicating if first line should be skipped
57
-
2.`charset` - default to `utf8`
58
-
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.
57
+
2.`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.
58
+
59
+
> NOTE: use diffStream if you need control over encoding
0 commit comments