Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-cookie

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cookie - npm Package Compare versions

Comparing version 2.0.6 to 2.0.7

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc