Skip to content

Commit e777c78

Browse files
committed
chore: create npm reference (close #1)
1 parent 33b2761 commit e777c78

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,24 @@ Author: Jonathan Hornung ([JohnnyTheTank](https://github.com/JohnnyTheTank))
44

55
## Usage
66

7-
1. Install via [bower](http://bower.io/) :
7+
1. Install via either [bower](http://bower.io/), [npm](https://www.npmjs.com/) or downloaded files:
88
1. `bower install --save angular-github-api-factory`
9+
2. `npm install --save angular-github-api-factory`
10+
3. download [angular-github-api-factory.zip](https://github.com/JohnnyTheTank/angular-github-api-factory/zipball/master)
911
2. Add `jtt_github` to your application's module dependencies.
1012
3. Include dependencies in your HTML.
1113
1. When using bower:
12-
1314
```html
14-
<script src="bower_components/angular/angular.js"></script>
15-
<script src="bower_components/angular-github-api-factory/src/angular-github-api-factory.js"></script>
15+
<script src="bower_components/angular-github-api-factory/src/angular-github-api-factory.min.js"></script>
16+
```
17+
2. When using npm:
18+
```html
19+
<script src="node_modules/angular-github-api-factory/src/angular-github-api-factory.min.js"></script>
20+
```
21+
3. when using downloaded files
22+
```html
23+
<script src="angular-github-api-factory.min.js"></script>
1624
```
17-
1825
4. Use the factory `githubFactory`
1926

2027

0 commit comments

Comments
 (0)