simple-cookie
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"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 @@ |
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
5929
60