{"name":"cookiejar","version":"2.1.2","author":{"name":"bradleymeck"},"main":"cookiejar.js","description":"simple persistent cookiejar system","files":["cookiejar.js"],"license":"MIT","jshintConfig":{"node":true},"scripts":{"test":"node tests/test.js"},"repository":{"type":"git","url":"git+https://github.com/bmeck/node-cookiejar.git"},"devDependencies":{"jshint":"^2.9.4"},"gitHead":"fbed912b7c84211ebcb5fadea0ce0b423853b365","bugs":{"url":"https://github.com/bmeck/node-cookiejar/issues"},"homepage":"https://github.com/bmeck/node-cookiejar#readme","_id":"cookiejar@2.1.2","_npmVersion":"6.1.0","_nodeVersion":"8.7.0","_npmUser":{"name":"andyburke","email":"andy.burke@mailbox.earth"},"dist":{"integrity":"sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA==","shasum":"dd8a235530752f988f9a0844f3fc589e3111125c","tarball":"http://registry-npm.ywwl.com/cookiejar/download/cookiejar-2.1.2.tgz","fileCount":4,"unpackedSize":14368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDgw2CRA9TVsSAnZWagAAq8MP/0kFBh6yl1QkvgTbEtQw\nlr6EQCaCfJuE62X3tC/s5kg+ciYx+cPogdjTQoDjDsbneCcAz9xrslStI+WI\nP1JOxieME7UJ/+E2rqPRhLAnfZsGTeV20mGQ+IFzNNIx5ergc8eZ5RqwBG95\ndkW4bDfwwynrUPabfQnEinJOfA8xu2aS5LZDTR4kjpik5HE9x7Mesq5bcF1S\n2HGMef6y7lhVgC4ctfTkC+N4COx4Cfavj9n0PQ0i0X+8uXJC1D87DoJcL8g8\nwXqhpbXYf48Jy0R5SUFs06hlyjXIw79lZ4PHckTcWdXngeVM8iIp02Ygq949\nP5Hqd3SLaF+YjN1MEUDzg85mRFfBT+7VfyWMblUqXNLoiwaz19f+NWY2KtIw\nrvkK1wG6YYm85nuZHZbmxBNIFkSJ3OMpfWfmI2/12I311D85oiYEKksHkUph\nRJSijRgC/wbfOxCL27ysFWQOGwNn/Rbd9wLzXd3YKCxQQLjOzWHCCY2b+Z2l\nUZuTVL8yGviJGPB6Lfa0PJ2lpFVJ0/6BhpvuSdfhQz7EQw1MebQen4vSZs6t\nDIH6heAQhZKc8B4pepvNrbHjDchPiPexWa7sSebrEu4hV/WT0Cy5ZeTRU9L9\nPIHRW5cHbJZFdOmQ4cw9yCd1slC1T4uI/swpzCQwLjR91iQzNLpP6z8aN+CG\nhSgU\r\n=GTOe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwD6g7eJ2EUTfA2OylitMrWDYu9GlWV1lhYE6hXwuyOAIhAMtVZjD4CSWhOCulqxB5d+8d0ZtxyQP+sXZ3wv87KiuH"}],"size":4108,"noattachment":false,"key":"/cookiejar/-/cookiejar-2.1.2.tgz"},"maintainers":[{"name":"andyburke","email":"aburke@bitflood.org"},{"name":"bradleymeck","email":"bradley.meck@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookiejar_2.1.2_1527647286179_0.35171296237936844"},"_hasShrinkwrap":false,"readme":"# CookieJar\n\n[![NPM version](http://img.shields.io/npm/v/cookiejar.svg)](https://www.npmjs.org/package/cookiejar)\n[![devDependency Status](https://david-dm.org/bmeck/node-cookiejar/dev-status.svg)](https://david-dm.org/bmeck/node-cookiejar?type=dev)\n\nSimple robust cookie library\n\n## Exports\n\n### CookieAccessInfo(domain,path,secure,script)\n\nclass to determine matching qualities of a cookie\n\n##### Properties\n\n* String domain - domain to match\n* String path - path to match\n* Boolean secure - access is secure (ssl generally)\n* Boolean script - access is from a script\n\n\n### Cookie(cookiestr_or_cookie, request_domain, request_path)\n\nIt turns input into a Cookie (singleton if given a Cookie),\nthe `request_domain` argument is used to default the domain if it is not explicit in the cookie string,\nthe `request_path` argument is used to set the path if it is not explicit in a cookie String.\n\nExplicit domains/paths will cascade, implied domains/paths must *exactly* match (see http://en.wikipedia.org/wiki/HTTP_cookie#Domain_and_Pat).\n\n##### Properties\n\n* String name - name of the cookie\n* String value - string associated with the cookie\n* String domain - domain to match (on a cookie a '.' at the start means a wildcard matching anything ending in the rest)\n* Boolean explicit_domain - if the domain was explicitly set via the cookie string\n* String path - base path to match (matches any path starting with this '/' is root)\n* Boolean explicit_path - if the path was explicitly set via the cookie string\n* Boolean noscript - if it should be kept from scripts\n* Boolean secure - should it only be transmitted over secure means\n* Number expiration_date - number of millis since 1970 at which this should be removed\n\n##### Methods\n\n* `String toString()` - the __set-cookie:__ string for this cookie\n* `String toValueString()` - the __cookie:__ string for this cookie\n* `Cookie parse(cookiestr, request_domain, request_path)` - parses the string onto this cookie or a new one if called directly\n* `Boolean matches(access_info)` - returns true if the access_info allows retrieval of this cookie\n* `Boolean collidesWith(cookie)` - returns true if the cookies cannot exist in the same space (domain and path match)\n\n\n### CookieJar()\n\nclass to hold numerous cookies from multiple domains correctly\n\n##### Methods\n\n* `Cookie setCookie(cookie, request_domain, request_path)` - modify (or add if not already-existing) a cookie to the jar\n* `Cookie[] setCookies(cookiestr_or_list, request_domain, request_path)` - modify (or add if not already-existing) a large number of cookies to the jar\n* `Cookie getCookie(cookie_name,access_info)` - get a cookie with the name and access_info matching\n* `Cookie[] getCookies(access_info)` - grab all cookies matching this access_info\n","publish_time":1527647286321,"_cnpm_publish_time":1527647286321,"dist-tags":{"latest":"2.1.4"}}