You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,9 @@ A simple, lightweight JavaScript API for handling cookies
26
26
27
27
## Installation
28
28
29
-
Include the script (unless you are packaging scripts somehow else):
29
+
### Direct download
30
+
31
+
Download the script [here](https://github.com/js-cookie/js-cookie/blob/v2.1.1/src/js.cookie.js) and include it (unless you are packaging scripts somehow else):
30
32
31
33
```html
32
34
<scriptsrc="/path/to/js.cookie.js"></script>
@@ -35,9 +37,13 @@ Include the script (unless you are packaging scripts somehow else):
35
37
**Do not include the script directly from GitHub (http://raw.github.com/...).** The file is being served as text/plain and as such being blocked
36
38
in Internet Explorer on Windows 7 for instance (because of the wrong MIME type). Bottom line: GitHub is not a CDN.
37
39
38
-
js-cookie supports [npm](https://www.npmjs.com/package/js-cookie) and [Bower](http://bower.io/search/?q=js-cookie) under the name `js-cookie`
40
+
### Package Managers
41
+
42
+
JavaScript Cookie supports [npm](https://www.npmjs.com/package/js-cookie) and [Bower](http://bower.io/search/?q=js-cookie) under the name `js-cookie`.
43
+
44
+
### Module Loaders
39
45
40
-
It can also be loaded as an AMD or CommonJS module.
46
+
JavaScript Cookie can also be loaded as an AMD or CommonJS module.
41
47
42
48
## Basic Usage
43
49
@@ -271,6 +277,7 @@ Check out the [Contributing Guidelines](CONTRIBUTING.md)
271
277
* Create version tag in git
272
278
* Create a github release and upload the minified file
273
279
* Link the documentation of the latest release tag in the `README.md`
280
+
* Link the download link to the latest release tag in the `README.md`
274
281
* Commit with the message "Prepare for the next development iteration"
0 commit comments