react-cookie
Advanced tools
Comparing version 2.0.6 to 2.0.7
{ | ||
"name": "react-cookie", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Universal cookies for React", | ||
@@ -14,3 +14,3 @@ "main": "lib/index.js", | ||
"bugs": "https://github.com/reactivestack/cookies/issues", | ||
"homepage": "https://github.com/reactivestack/cookies/packages/react-cookie/#readme", | ||
"homepage": "https://github.com/reactivestack/cookies/tree/master/packages/react-cookie/#readme", | ||
"keywords": [ | ||
@@ -17,0 +17,0 @@ "universal", |
@@ -55,2 +55,13 @@ <h3 align="center"> | ||
### `remove(name, [options])` | ||
Remove a cookie | ||
- name (string): cookie name | ||
- options (object): Support all the cookie options from RFC 6265 | ||
- path (string): cookie path, use `/` as the path if you want your cookie to be accessible on all pages | ||
- expires (Date): absolute expiration date for the cookie | ||
- maxAge (number): relative max age of the cookie from when the client receives it in second | ||
- domain (string): domain for the cookie (sub.domain.com or .allsubdomains.com) | ||
- secure (boolean): Is only accessible through HTTPS? | ||
- httpOnly (boolean): Is only the server can access the cookie? | ||
## Simple Example | ||
@@ -57,0 +68,0 @@ ```js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
12833
0
212