1.0.11 • Published 7 years ago

shaf-unified-diff v1.0.11

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

It's easy peasy

<!-- Custom Elements v1 polyfill (2.7KB gzipped) -->
<script src="https://unpkg.com/@webcomponents/custom-elements@1.0.0-alpha.3"></script>
<!-- our custom element's source (3.4KB gzipped) -->
<script src="https://unpkg.com/shaf-unified-diff@1.0.11"></script>

Usage

<shaf-unified-diff>
<pre>
diff -u originaldirectory/file1 updateddirectory/file1
--- originaldirectory/file1 2007-02-04 16:17:57.000000000 +0100
+++ updateddirectory/file1 2007-02-04 16:18:33.000000000 +0100
@@ -1 +1 @@
-This is the first original file.
+This is the first updated file.
</pre>
</shaf-unified-diff>

The diff still shows if JavaScript is turned off. Don't indent the contents since the <pre> tag assumes preformatted text.

Dependencies

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago