2.0.0 • Published 11 months ago

@lowlighter/diff v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

➕ Diff

JSR JSR Score NPM Coverage

Use the patience algorithm for practical purposes.

📑 Examples

import { diff } from "./diff.ts"
diff("foo\n", "foo")
--- a
+++ b
@@ -1 +1 @@
-foo
+foo
\ No newline at end of file

✨ Features

  • Support for computing the unified patch between two strings.
  • Support for matching the diff command line output.
  • Has no external dependencies.
  • Is lightweight.

📜 License and credits

Copyright (c) Simon Lecoq <@lowlighter>. (MIT License)
https://github.com/lowlighter/libs/blob/main/LICENSE

This library is based on the previous work of @jonTrent which is itself based on the work of Bram Cohen.

2.0.0

11 months ago

1.0.15

12 months ago

1.0.14

12 months ago

1.0.13

12 months ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago