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

simple-cookie

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-cookie - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

package.json
{
"name": "simple-cookie",
"version": "0.0.6",
"version": "0.0.7",
"description": "Simple cookie parser & serializer",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,3 +0,1 @@

#RESERVED
#simple-cookie

@@ -30,3 +28,3 @@ simple cookie serializer & parser for node.js

**expires** `DateString | Number | Date` (optional) : expire date
**expires** `DateString | Number | Date` (optional) : expire date (default type is Date)

@@ -44,15 +42,15 @@ **path** `DateString | Number | Date` (optional) : cookie path, defaults to `/`

var cookieString = cookie.stringify( cookieObject );
# cookieName=cookie%20value; Expires: Sat, 15-Aug-2015 17:41:05 GMT; Max-Age: 31449600; Path=/; domain=domain.com; secure
// cookieName=cookie%20value; Expires: Sat, 15-Aug-2015 17:41:05 GMT; Max-Age: 31449600; Path=/; domain=domain.com; secure
cookie.parse( cookieString [, defaultPath] [, defaultDomain] );
# will create object like the 'cookieObject'
// will create object like the 'cookieObject'
cookie.tokenize([
{name:'cookie1','cvalue1'},
{name:'cookie2','cvalue2'},
{name:'cookie3','cvalue3'}
{name:'cookie1', value: 'cvalue1'},
{name:'cookie2', value: 'cvalue2'},
{name:'cookie3', value: 'cvalue3'}
]);
# cookie1=cvalue1; cookie2=cvalue2; cookie3=cvalue3
// cookie1=cvalue1; cookie2=cvalue2; cookie3=cvalue3
```

@@ -59,0 +57,0 @@

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