We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does slightly better with line-based content (still fragments individual characters, but less then current diff?)
https://npmjs.org/package/chardiff
The text was updated successfully, but these errors were encountered:
For me, the litmus test is the diff of "foo" and "ffoo". 😉 And based on this, Neil Fraser’s diff-match-patch would be my favorite.
diff-match-patch only needs two change objects. Whereas diff and chardiff produce essentially the same result, that comprises three change objects.
diff-match-patch
diff
chardiff
diff-match-patch (NPM package):
[ [ 1, 'f' ], [ 0, 'foo' ] ]
diff:
[ { count: 1, value: 'f' }, { count: 1, added: true, removed: undefined, value: 'f' }, { count: 2, value: 'oo' } ]
chardiff:
[ { type: '=', value: 'f' }, { type: '+', right: 'f' }, { type: '=', value: 'oo' } ]
Sorry, something went wrong.
Would you be interested in a pull request?
No branches or pull requests
Does slightly better with line-based content (still fragments individual characters, but less then current diff?)
https://npmjs.org/package/chardiff
The text was updated successfully, but these errors were encountered: