1.0.12 • Published 7 years ago

diff-view v1.0.12

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

Introduction

Calculates and visualises differences between textual files. Uses teh popular JSDifflib. Outputs either as HTML or plain text in Github style.

Examples

To calculate deltas for two files:

var a = ' a\
b\
c'

var b = ' d\
b'

HTML output

DiffView.compare(a, b)

for side by side configuration outputs:

Old textNew text
1a1d
2b2b
3c

and for the inline configuration outputs

Text
1a
1d
22b
3c

Textual output

console.log(DiffViewSimple.compare(a, b));

outputs

- (1,) a
+ (,1) d
- (3,) c

To see the more examples and options please see the original documentation

1.0.12

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