Skip to content

Commit 5871d78

Browse files
committed
Added note to readme on how to add the library to a package.json.
1 parent 1c7ca13 commit 5871d78

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ instead it will insert the appropriate tags for changed/added/deleted text nodes
1111
tags or tag hierarchies.
1212

1313

14+
## Installation
15+
16+
If you use npm, you can add a dependency to your `package.json` like this:
17+
```json
18+
"dependencies": {
19+
"htmldiff": "github:Sedeniono/htmldiff.js#v3.0.0"
20+
},
21+
```
22+
Replace the version tag with the desired git tag or a SHA.
23+
24+
1425
## API
1526

1627
The exports can be found in [`dist/htmldiff.d.ts`](https://github.com/Sedeniono/htmldiff.js/blob/master/dist/htmldiff.d.ts).

0 commit comments

Comments
 (0)