Skip to content

Commit 707fccc

Browse files
Add note to README about setting context to Infinity or MAX_SAFE_INTEGER. (#473)
1 parent 1c7514c commit 707fccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Broadly, jsdiff's diff functions all take an old text and a new text and perform
9696
* `oldHeader` : Optional additional information to include in the old file header. Default: `undefined`.
9797
* `newHeader` : Optional additional information to include in the new file header. Default: `undefined`.
9898
* `options` : An object with options.
99-
- `context` describes how many lines of context should be included.
99+
- `context` describes how many lines of context should be included. You can set this to `Number.MAX_SAFE_INTEGER` or `Infinity` to include the entire file content in one hunk.
100100
- `ignoreWhitespace`: Same as in `diffLines`. Defaults to `false`.
101101
- `stripTrailingCr`: Same as in `diffLines`. Defaults to `false`.
102102
- `newlineIsToken`: Same as in `diffLines`. Defaults to `false`.

0 commit comments

Comments
 (0)