Skip to content

Commit 11c37ae

Browse files
committed
Updated docs
1 parent 358ab94 commit 11c37ae

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ You can install the package globally and use it as command line tool:
3636
```sh
3737
# Install the package globally
3838
npm i -g git-stats
39+
3940
# Initialize git hooks
4041
# This is for tracking the new commits
4142
curl -s https://raw.githubusercontent.com/IonicaBizau/git-stats/master/scripts/init-git-post-commit | bash
@@ -241,10 +242,14 @@ Cygwin Terminal is known to work, while Windows Command Prompt and Git Bash do n
241242
## :clipboard: Example
242243

243244

244-
Here is an example how to use this package as library. To install it locally, as library, you can do that using `npm`:
245+
Here is an example how to use this package as library. To install it locally, as library, you can do that using `npm` (or `yarn`):
245246

246247
```sh
247-
$ npm i --save git-stats
248+
# Using npm
249+
npm install --save git-stats
250+
251+
# Using yarn
252+
yarn add git-stats
248253
```
249254

250255

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,4 +286,4 @@
286286
"bloggify.json",
287287
"bloggify/"
288288
]
289-
}
289+
}

0 commit comments

Comments
 (0)