{"name":"cookiejar","version":"2.1.4","author":{"name":"bradleymeck"},"main":"cookiejar.js","description":"simple persistent cookiejar system","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":"ccb012da6dcfd58aaed792824f83d7227df8dea1","bugs":{"url":"https://github.com/bmeck/node-cookiejar/issues"},"homepage":"https://github.com/bmeck/node-cookiejar#readme","_id":"cookiejar@2.1.4","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==","shasum":"ee669c1fea2cf42dc31585469d193fef0d65771b","tarball":"http://registry-npm.ywwl.com/cookiejar/download/cookiejar-2.1.4.tgz","fileCount":4,"unpackedSize":14541,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmKMBv8dnJAjJa+2el3D4SfRmSOX3AlW3tGZMsLIyG7gIgWhSx2IUyxVtgPoaiMxkMCECaYeeRrbDkjN6bMIq8arw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwL0JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr63g//dxooPSB9GgH5ODkNpgBm9Ctzx+CcgL2BKZBT+ziuHItwM2CN\r\nrKFfOsj3whfaFuZUYn6+7gPupMx7SyrNEMFhRsTcPUIJX6WE2lCI+/vJXW/i\r\n//ghd+qygNTT+Pg+j1NlecDB267mr+VIiA32Cdu5xmvPDVKVep7DXKSE533s\r\nVjLydmUwkaq3D+yJri96a5qdHLMp+nAYE3vKCoZ0QTTwcafx2nB0dy8SyYrB\r\nbDu7OMsszRXQpzTS/h3fwm3enkuZDmaLCCTYr8sMsvpXkbT1S4k27iTSc4tM\r\ndBCv4VJ44UETlF6FiceXgW+EGjgKguN6c8oTAmJvy/9W+D6ujoqTeOqanftt\r\n220YJsPXj0E+iXguH4NFqr7wys0jjVu/Vf3oQNAcySdnjbDhAHh63ZyoDi0H\r\nLj9Yu42ZvK2GPxjzPlGi53p8I6LTWregv1HPFu3T1XI+m+L6S6tdusoDyJiy\r\nMolu1RhYOT7YyaqV6cMUrt8X2rzJm+vaZ7ubwqtv7laJWEX/AMR5Xx5HoSLu\r\n4F1lo+Ft63l7TienFEnGIguQ48LyV1fTshmtfdlAhIeo0lNrNz0X3UGY5kEn\r\njMYoSMNYTr6j5/v0c2p2OHcFTVesApArSby3giV4u5TtDZSC2mcBIpuio3LX\r\nT5OWKb0hWCneSuKlydFraMxS7gHmS2B8fRM=\r\n=S8p/\r\n-----END PGP SIGNATURE-----\r\n","size":4146,"noattachment":false,"key":"/cookiejar/-/cookiejar-2.1.4.tgz"},"_npmUser":{"name":"andyburke","email":"andy.burke@mailbox.earth"},"directories":{},"maintainers":[{"name":"andyburke","email":"andy.burke@mailbox.earth"},{"name":"bradleymeck","email":"bradley.meck@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookiejar_2.1.4_1673575689388_0.13742533863238782"},"_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":1673575689520,"_cnpm_publish_time":1673575689520,"dist-tags":{"latest":"2.1.4"}}