Skip to content

Commit f342680

Browse files
committed
update readme (add to npm)
1 parent e119ce6 commit f342680

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Simple social buttons for your site.
44

5-
### [Demo](https://wcoder.github.io/share-buttons/)
5+
## [Demo](https://wcoder.github.io/share-buttons/)
66

77
## Browser support
88

@@ -16,10 +16,16 @@ Simple social buttons for your site.
1616

1717
## Install
1818

19-
Include `share-buttons.js` in the end of page:
19+
NPM:
20+
21+
```sh
22+
npm i share-buttons
23+
```
24+
25+
include `share-buttons.js` in the end of page:
2026

2127
``` html
22-
<script src="../dist/share-buttons.js"></script>
28+
<script src="<path>/dist/share-buttons.js"></script>
2329
```
2430

2531
Paste this html on the page:

0 commit comments

Comments
 (0)