Skip to content

Commit

Permalink
Added artwork
Browse files Browse the repository at this point in the history
  • Loading branch information
Voltace committed Apr 8, 2015
1 parent 5d0e431 commit 7cdd946
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
![browser-cookies][logo-url]
# browser-cookies
**Tiny cookies library for the browser**

[![Build Status][travis-image]][travis-url]
[![Coveralls Status][coveralls-image]][coveralls-url]
[![Dev Dependencies Status][david-image]][david-url]

# browser-cookies
Tiny cookies library for the browser
- [Features](#features)
- [Browser compatibility](#browser-compatibility)
- [Installation](#installation)
Expand Down Expand Up @@ -70,7 +72,7 @@ Options may be set globally using `cookies.defaults` or passed as function argum
|------------|--------------------|---------|--------
| `expires` | `Number` or `Date` | `0` | Number of days until the cookie expires, if set to `0` the cookie will expire at the end of the session. Alternatively a [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) object may be passed such as `new Date(2018, 3, 27)`.
| `domain` | `String` | `""` | The [domain](http://stackoverflow.com/questions/1062963/how-do-browser-cookie-domains-work) from where the cookie is readable. If not specified, the current domain will be used.
| `path` | `String` | `"/"` | The path from where the cookie is readable, the default value of `"/"` allows the cookie to be readable from all paths. If set to `""`, the cookie will only be readable from the current browser path. <br/><br/> Note that cookies don't support relative paths such as `../../some/path`, paths must be absolute like `/some/path`.
| `path` | `String` | `"/"` | The path from where the cookie is readable, the default value of `"/"` allows the cookie to be readable from all paths. If set to `""` the cookie will only be readable from the current browser path. <br/><br/> Note that cookies don't support relative paths such as `../../some/path`, paths must be absolute like `/some/path`.
| `secure` | `Boolean` | `false` | If true the cookie will only be transmitted over secure protocols like https.
| `httponly` | `Boolean` | `false` | If true the cookie may only be read by the web server. <br/><br/>This option may be set to [prevent malicious scripts from accessing cookies](http://blog.codinghorror.com/protecting-your-cookies-httponly/), not all browsers support this feature yet.

Expand Down Expand Up @@ -144,6 +146,8 @@ Feel free to add an issue on GitHub for any questions, bug or feature request yo
### License
Public Domain ([UNLICENSE](LICENSE))

[logo-url]: https://raw.githubusercontent.com/voltace/browser-cookies/master/browser-cookies.png

[travis-url]: https://travis-ci.org/voltace/browser-cookies
[travis-image]: http://img.shields.io/travis/voltace/browser-cookies.svg

Expand Down
Binary file added browser-cookies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7cdd946

Please sign in to comment.