Skip to content

Commit 3b64a6e

Browse files
committed
update readme and add repo to package.json
1 parent fa81541 commit 3b64a6e

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

‎package.json‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"name": "splitdiff",
3-
"version": "1.0.0",
3+
"version": "0.1.0",
44
"description": "Pretty line-level side-by-side (split) diffs in the terminal",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/njbotkin/splitdiff"
8+
},
59
"main": "index.js",
610
"scripts": {
711
"test": "echo \"Error: no test specified\" && exit 1"

‎readme.md‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,15 @@
22

33
Pretty split (side-by-side) diffs in your terminal!
44

5-
Can be used via CLI or API. You can pipe git diffs into it like so: `git --no-pager diff HEAD~2 HEAD~1 | splitdiff`, or use it like `splitdiff a b`
5+
##install
6+
7+
`npm i splitdiff`
8+
9+
##usage
10+
11+
Can be used via CLI or API. Two different patterns:
12+
13+
- `git --no-pager diff HEAD~2 HEAD~1 | splitdiff`
14+
- `splitdiff a b`
15+
16+
git diffs generally produce better results than the [built-in diff implementation](https://www.npmjs.com/package/diff).

0 commit comments

Comments
 (0)