{ "author": { "name": "Roman Shtylman", "email": "shtylman@gmail.com" }, "name": "cookie", "description": "cookie parsing and serialization", "version": "0.1.0", "repository": { "type": "git", "url": "git://github.com/shtylman/node-cookie.git" }, "keywords": [ "cookie", "cookies" ], "main": "index.js", "scripts": { "test": "mocha" }, "dependencies": {}, "devDependencies": { "mocha": "1.x.x" }, "optionalDependencies": {}, "engines": { "node": "*" }, "readme": "# cookie [![Build Status](https://secure.travis-ci.org/shtylman/node-cookie.png?branch=master)](http://travis-ci.org/shtylman/node-cookie) #\n\ncookie is a basic cookie parser and serializer. It doesn't make assumptions about how you are going to deal with your cookies. It basically just provides a way to read and write the HTTP cookie headers.\n\nSee [RFC6265](http://tools.ietf.org/html/rfc6265) for details about the http header for cookies.\n\n## how?\n\n```\nnpm install cookie\n```\n\n```javascript\nvar cookie = require('cookie');\n\nvar hdr = cookie.serialize('foo', 'bar');\n// hdr = 'foo=bar';\n\nvar cookies = cookie.parse('foo=bar; cat=meow; dog=ruff');\n// cookies = { foo: 'bar', cat: 'meow', dog: 'ruff' };\n```\n\n## more\n\nThe serialize function takes a third parameter, an object, to set cookie options. See the RFC for valid values.\n\n### path\n> cookie path\n\n### expires\n> absolute expiration date for the cookie (Date object)\n\n### maxAge\n> relative max age of the cookie from when the client receives it (seconds)\n\n### domain\n> domain for the cookie\n\n### secure\n> true or false\n\n### httpOnly\n> true or false\n\n", "readmeFilename": "README.md", "_id": "cookie@0.1.0", "dist": { "shasum": "e6a72329570ab5a3b38a8a29c5094643959ff286" }, "_from": "cookie@0.1.0", "_resolved": "https://registry.npmjs.org/cookie/-/cookie-0.1.0.tgz" }