Skip to content

Commit fa8f513

Browse files
committed
chore: create npm reference (close #1)
1 parent 7e4f850 commit fa8f513

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,25 @@ 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-openweathermap-api-factory`
9+
2. `npm install --save angular-openweathermap-api-factory`
10+
3. download [angular-openweathermap-api-factory.zip](https://github.com/JohnnyTheTank/angular-openweathermap-api-factory/zipball/master)
911
2. Add `jtt_openweathermap` 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-openweathermap-api-factory/src/angular-openweathermap-api-factory.js"></script>
15+
<script src="bower_components/angular-openweathermap-api-factory/src/angular-openweathermap-api-factory.min.js"></script>
1616
```
17-
18-
4. Use the factory `openweathermapFactory`.
17+
2. When using npm:
18+
```html
19+
<script src="node_modules/angular-openweathermap-api-factory/src/angular-openweathermap-api-factory.min.js"></script>
20+
```
21+
3. when using downloaded files
22+
```html
23+
<script src="angular-openweathermap-api-factory.min.js"></script>
24+
```
25+
4. Use the factory `openweathermapFactory`
1926

2027

2128
### factory methods

0 commit comments

Comments
 (0)