package.json 1.7 KB

123456789101112131415161718192021222324252627282930313233
  1. {
  2. "author": {
  3. "name": "Roman Shtylman",
  4. "email": "shtylman@gmail.com"
  5. },
  6. "name": "cookie",
  7. "description": "cookie parsing and serialization",
  8. "version": "0.1.0",
  9. "repository": {
  10. "type": "git",
  11. "url": "git://github.com/shtylman/node-cookie.git"
  12. },
  13. "keywords": [
  14. "cookie",
  15. "cookies"
  16. ],
  17. "main": "index.js",
  18. "scripts": {
  19. "test": "mocha"
  20. },
  21. "dependencies": {},
  22. "devDependencies": {
  23. "mocha": "1.x.x"
  24. },
  25. "optionalDependencies": {},
  26. "engines": {
  27. "node": "*"
  28. },
  29. "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",
  30. "readmeFilename": "README.md",
  31. "_id": "cookie@0.1.0",
  32. "_from": "cookie@0.1.0"
  33. }