Skip to content

Commit 77c842f

Browse files
committed
update readme
1 parent 83b0194 commit 77c842f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ This script expect input of two `sorted` text files. If the file is not sorted,
1313

1414
## Install
1515

16-
```
16+
```bash
1717
$ npm install text-file-diff
1818
```
1919

2020
## Usage
21-
```
21+
```js
2222
import TextFileDiff from 'text-file-diff';
2323

2424
m.on('-', line => {
@@ -35,14 +35,14 @@ $ npm install text-file-diff
3535

3636
## Example
3737
```bash
38-
./bin/text-file-diff tests/file1.txt tests/file2.txt | sed 's/^\(.\{1\}\)/\1|/'
38+
$ ./bin/text-file-diff tests/file1.txt tests/file2.txt | sed 's/^\(.\{1\}\)/\1|/'
3939
```
4040

4141
## Point of Interest
4242

4343
* Alternate shell 'diff' command:
4444
```bash
45-
diff -u f1.txt f2.txt | sed -n '1,2d;/^[-+|]/p' | sed 's/^\(.\{1\}\)/\1|/'
45+
$ diff -u f1.txt f2.txt | sed -n '1,2d;/^[-+|]/p' | sed 's/^\(.\{1\}\)/\1|/'
4646
```
4747

4848
* https://github.com/paulfitz/daff - multi languages diff framework

0 commit comments

Comments
 (0)