{"_id":"biskviit","_rev":"103015","name":"biskviit","description":"Yet another module for http cookie handling","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"time":{"modified":"2021-06-03T10:36:22.000Z","created":"2015-09-14T12:23:51.048Z","2.0.0":"2017-08-22T06:59:52.530Z","1.0.1":"2015-09-14T12:32:57.150Z","1.0.0":"2015-09-14T12:23:51.048Z"},"users":{},"author":{"name":"Andris Reinman"},"repository":{"type":"git","url":"git+https://github.com/andris9/biskviit.git"},"versions":{"2.0.0":{"name":"biskviit","version":"2.0.0","description":"Yet another module for http cookie handling","main":"lib/biskviit.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git+https://github.com/andris9/biskviit.git"},"keywords":["HTTP","cookie","cookies"],"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/andris9/biskviit/issues"},"homepage":"https://github.com/andris9/biskviit#readme","devDependencies":{"chai":"^4.1.1","eslint-config-nodemailer":"^1.2.0","grunt":"^1.0.1","grunt-cli":"^1.2.0","grunt-eslint":"^20.0.0","grunt-mocha-test":"^0.13.2","mocha":"^3.5.0"},"dependencies":{"psl":"^1.1.19"},"engines":{"node":">=1.0.0"},"gitHead":"f42c3057891ed808affb97490164274f15d96972","_id":"biskviit@2.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.1.4","_npmUser":{"name":"andris","email":"andris@kreata.ee"},"dist":{"shasum":"df7ab00a7b8ac0511cb1499a3ec12a19d0c78f42","size":6252,"noattachment":false,"key":"/biskviit/-/biskviit-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/biskviit/download/biskviit-2.0.0.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/biskviit-2.0.0.tgz_1503385191120_0.17281196638941765"},"directories":{},"publish_time":1503385192530,"_hasShrinkwrap":false,"_cnpm_publish_time":1503385192530},"1.0.1":{"name":"biskviit","version":"1.0.1","description":"Yet another module for http cookie handling","main":"lib/biskviit.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git+https://github.com/andris9/biskviit.git"},"keywords":["HTTP","cookie","cookies"],"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/andris9/biskviit/issues"},"homepage":"https://github.com/andris9/biskviit#readme","devDependencies":{"chai":"^3.2.0","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.3","grunt-mocha-test":"^0.12.7","mocha":"^2.3.2"},"dependencies":{"psl":"^1.1.7"},"engines":{"node":">=1.0.0"},"gitHead":"b971c1ccc237097ce6621a3656f42bb09d893727","_id":"biskviit@1.0.1","_shasum":"037a0cd4b71b9e331fd90a1122de17dc49e420a7","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"andris","email":"andris@kreata.ee"},"dist":{"shasum":"037a0cd4b71b9e331fd90a1122de17dc49e420a7","size":6214,"noattachment":false,"key":"/biskviit/-/biskviit-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/biskviit/download/biskviit-1.0.1.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1442233977150,"_cnpm_publish_time":1442233977150,"_hasShrinkwrap":false},"1.0.0":{"name":"biskviit","version":"1.0.0","description":"Yet another module for http cookie handling","main":"lib/biskviit.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git+https://github.com/andris9/biskviit.git"},"keywords":["HTTP","cookie","cookies"],"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/andris9/biskviit/issues"},"homepage":"https://github.com/andris9/biskviit#readme","devDependencies":{"chai":"^3.2.0","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.3","grunt-mocha-test":"^0.12.7","mocha":"^2.3.2"},"dependencies":{"psl":"^1.1.7"},"gitHead":"0e8324ca2c464f8fcc3fb11a5101e0c96d8a3255","_id":"biskviit@1.0.0","_shasum":"5d0dd95e6b36dbd068ad762f4bb93af067dd6022","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"andris","email":"andris@kreata.ee"},"dist":{"shasum":"5d0dd95e6b36dbd068ad762f4bb93af067dd6022","size":6088,"noattachment":false,"key":"/biskviit/-/biskviit-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/biskviit/download/biskviit-1.0.0.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1442233431048,"_cnpm_publish_time":1442233431048,"_hasShrinkwrap":false}},"readme":"# biskviit\n\nYet another node module for handling http cookies. This module parses `Set-Cookie` header, stores the data to memory and returns valid value for `Cookie` header based on the stored cookie data.\n\n> **NB** Requires Node.js v6+\n\n## Usage\n\nInstall from npm\n\n    npm install biskviit --save\n\nRequire as `Biskviit`\n\n```javascript\nconst Biskviit = require('biskviit');\n```\n\nCreate a cookie managing *biskviit* instance\n\n```javascript\nconst biskviit = new Biskviit(options);\n```\n\nWhere\n\n  * **options** is an optional options object with the following properties:\n    * **sessionTimeout** is the amount in seconds for default session length, used for cookies without an expire argument\n\n**Example**\n\n```javascript\nconst Biskviit = require('biskviit');\nconst biskviit = new Biskviit({\n    sessionTimeout: 5 * 60 // expire cookies after 5 minutes\n});\n```\n\n### set\n\nTo add new cookies to the storage use `set`\n\n```javascript\nbiskviit.set(cookieString, url)\n```\n\nWhere\n\n  * **cookieString** is the value from the `Set-Cookie:` header\n  * **url** is the currently open URL that sent the cookie header\n\n**Example**\n\n```javascript\nbiskviit.set('theme=light', 'http://example.com/');\nbiskviit.set('sessionToken=abc123; Expires=Wed, 09 Jun 2021 10:18:14 GMT', 'http://example.com/');\n```\n\n### get\n\nTo list all available cookies for a specified URL use `get`\n\n```javascript\nconst cookiesString = biskviit.get(url);\n```\n\nWhere\n\n  * **url** is the URL the cookies are required for\n\n**Example**\n\n```javascript\nconst cookiesString = biskviit.get('http://example.com/');\n// theme=light; sessionToken=abc123\n```\n\n### list\n\nIf you need to filter cookies as objects, use `list`\n\n```javascript\nconst cookiesString = biskviit.list(url);\n```\n\nWhere\n\n  * **url** is the URL the cookies are required for\n\n**Example**\n\n```javascript\nconst cookiesString = biskviit.list('http://example.com/');\n// [{key: 'theme', value: 'light', expires: ...}, {key: 'sessionToken', value: 'abc123', expires: ...}]\n```\n\n## License\n\n**MIT**\n","_attachments":{},"homepage":"https://github.com/andris9/biskviit#readme","bugs":{"url":"https://github.com/andris9/biskviit/issues"},"license":"MIT"}