Skip to content

Commit 7ea18a3

Browse files
authored
Update README.md
1 parent d7a1688 commit 7ea18a3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Give this library the ⭐️ if it's useful 😉
1919
<script type="type/javascript" src="https://unpkg.com/dragscroll-ts@1.0.4/build/dragscroll.min.js"></script>
2020
```
2121

22-
```js
23-
// Npm or Yarn
24-
npm i dragscroll-ts
22+
```sh
23+
# npm or yarn
24+
25+
npm i --save dragscroll-ts
2526
yarn add dragscroll-ts
2627
```
2728

@@ -35,7 +36,7 @@ const DragScroll = require('dragscroll-ts')
3536
import DragScroll from 'dragscroll-ts'
3637
```
3738

38-
```js
39+
```ts
3940
// Typescript
4041
import DragScroll, { IDragScrollOptions } from 'dragscroll-ts'
4142
const options: IDragScrollOptions = {}

0 commit comments

Comments
 (0)