Skip to content

Commit 6ac2aff

Browse files
author
Michael Rook
committed
Update documentation.
1 parent 33586af commit 6ac2aff

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@ dataFetcher.js is a small library to swap the content of an element with the res
44

55
## Adding dataFetcher.js to your project
66

7+
### From cdn.jsdelivr.net
8+
- Add the script to your footer.
9+
```html
10+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/data-fetcher.min.js"></script>
11+
```
12+
13+
### Precompiled js file
14+
- Clone or download the library.
15+
- Add `/dist/data-fetcher.min.js` to your project.
16+
717
### Building from the source
18+
- Clone or download the library.
819
- Run `npm install` & ( `npm run dev` or `npm run prod` )
920
- Add `/dist/data-fetcher.min.js` to your project.
1021

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "dataFetcher.js",
2+
"name": "datafetcher.js",
33
"description": "dataFetcher.js is a small library to swap the content of an element with the response from an ajax response.",
44
"version": "1.0.0",
55
"license": "MIT",

0 commit comments

Comments
 (0)