Skip to content

Commit ae0e80b

Browse files
committed
remove charset
1 parent ac7dfdb commit ae0e80b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ m.diff('tests/file1.txt', 'tests/file2.txt');
5454

5555
**TextFileDiff** constructor also accept optional options object. Valid options are:
5656
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
5960
6061
## Example
6162
```bash

0 commit comments

Comments
 (0)