{"_id":"doc-cookies","_rev":"14-4bb2475a524ff4bbca1af1db08ab5c3b","name":"doc-cookies","description":"Simple cookie framework with full Unicode support ","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.1":{"name":"doc-cookies","version":"0.0.1","description":"A complete cookies reader/writer framework with full unicode support.","main":"dist/docCookies.js","scripts":{"dist":"./node_modules/umd/bin/cli.js docCookies docCookies.js dist/docCookies.js","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/evanmuller/docCookies.git"},"author":"","license":"GPL-3.0","bugs":{"url":"https://github.com/evanmuller/docCookies/issues"},"homepage":"https://github.com/evanmuller/docCookies","devDependencies":{"umd":"^3.0.0"},"gitHead":"1727e14af1ace15a1a4a4bd9e60d438e1bad5b4c","_id":"doc-cookies@0.0.1","_shasum":"0a253b23c68aded6cf9455900f063f6eda277050","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.33","_npmUser":{"name":"evanmuller","email":"evanmuller@gmail.com"},"maintainers":[{"name":"evanmuller","email":"evanmuller@gmail.com"}],"dist":{"shasum":"0a253b23c68aded6cf9455900f063f6eda277050","tarball":"https://registry.npmjs.org/doc-cookies/-/doc-cookies-0.0.1.tgz","integrity":"sha512-i8EzxlvfUeiVVBmtVjqDMsOv6k9yo+8CZ+2BhsGhzuwwP5xkwOOrF8lmgSthGbMba1ID2WrZ+VsxH2j4/gFLFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE70Gz6MoH7EHLUxv94KmKULGQ7+N492jpA1b3UjNweeAiAJgLDOdKmxhdpaDPZBpNRriBCaFQB3GDBghU2wNiOLkg=="}]},"directories":{}},"0.0.2":{"name":"doc-cookies","version":"0.0.2","description":"A complete cookies reader/writer framework with full unicode support","author":"","homepage":"https://github.com/evanmuller/docCookies","repository":{"type":"git","url":"https://github.com/evanmuller/docCookies.git"},"bugs":{"url":"https://github.com/evanmuller/docCookies/issues"},"main":"docCookies.umd.js","files":["docCookies.js","docCookies.umd.js"],"scripts":{"prepublish":"umd $npm_package_name $npm_package_files_0 $npm_package_main"},"license":"GPL-3.0","keywords":["mozilla","cookie","browser"],"devDependencies":{"umd":"^3.0.0"},"gitHead":"d8e2c9d24aeee184bb95187bcf67d4f37c4e96de","_id":"doc-cookies@0.0.2","_shasum":"fa193d58e5fdb174be5a53ab92eaaa64346dc4d6","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.33","_npmUser":{"name":"evanmuller","email":"evanmuller@gmail.com"},"maintainers":[{"name":"evanmuller","email":"evanmuller@gmail.com"}],"dist":{"shasum":"fa193d58e5fdb174be5a53ab92eaaa64346dc4d6","tarball":"https://registry.npmjs.org/doc-cookies/-/doc-cookies-0.0.2.tgz","integrity":"sha512-/XrlcmtXH9+OBPFV980iVMBBqwbfjKbm4v4XbEcczGM2pfpVldGUM4hsQHzRNaQSNbZsCyn6gbcS363C/vtNqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtk+28ySprhg7YEhM9ErgYntySpybL/pU3U1rJYgaYRAIhAIFyPL5w1x6bMhHkQKCmmf6aJEZ0V4ZtkrwEGwcLXQO1"}]},"directories":{}},"1.0.0":{"name":"doc-cookies","version":"1.0.0","description":"A complete cookies reader/writer framework with full unicode support","author":{"name":"fusionchess","url":"https://developer.mozilla.org/en-US/docs/User:fusionchess"},"contributors":[{"name":"Evan Muller","email":"evanmuller@gmail.com","url":"http://evanmuller.com"},{"name":"Jason Karns","email":"jason@karns.name","url":"http://jason.karns.name"}],"homepage":"https://github.com/evanmuller/docCookies","repository":{"type":"git","url":"https://github.com/evanmuller/docCookies.git"},"bugs":{"url":"https://github.com/evanmuller/docCookies/issues"},"main":"docCookies.umd.js","files":["docCookies.js","docCookies.umd.js"],"scripts":{"prepublish":"umd $npm_package_name $npm_package_files_0 $npm_package_main"},"license":"GPL-3.0","keywords":["mozilla","cookie","browser"],"devDependencies":{"umd":"^3.0.0"},"gitHead":"b2871bcd1ac46724b16efcf497f08305dc870a80","_id":"doc-cookies@1.0.0","_shasum":"ed4ed086b1484d0652c1a840f61f797ae6bf3610","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.33","_npmUser":{"name":"evanmuller","email":"evanmuller@gmail.com"},"maintainers":[{"name":"evanmuller","email":"evanmuller@gmail.com"}],"dist":{"shasum":"ed4ed086b1484d0652c1a840f61f797ae6bf3610","tarball":"https://registry.npmjs.org/doc-cookies/-/doc-cookies-1.0.0.tgz","integrity":"sha512-385hi3ksuQZ412qar5Y5fk4E19588vbgIdUbAAx+BRHrl4cHz6vtUX+vZ/iRwUWMehuj8av6J297M7eqtXlzPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHWRn9YetgV95pV1sbrpQwy+QG8Doc5rRcKwpdEZFuB6AiAwY0LW5ruSskc/Kh6Mtvjf/m3v4PDvMclXQp9DMhdVkg=="}]},"directories":{}},"1.0.1":{"name":"doc-cookies","version":"1.0.1","description":"A complete cookies reader/writer framework with full unicode support","author":{"name":"fusionchess","url":"https://developer.mozilla.org/en-US/docs/User:fusionchess"},"contributors":[{"name":"Evan Muller","email":"evanmuller@gmail.com","url":"http://evanmuller.com"},{"name":"Jason Karns","email":"jason@karns.name","url":"http://jason.karns.name"},{"name":"BiblioLabs LLC.","email":"it@bibliolabs.com","url":"http://www.biblioboard.com"}],"homepage":"https://github.com/bibliolabs/docCookies","repository":{"type":"git","url":"git+https://github.com/bibliolabs/docCookies.git"},"bugs":{"url":"https://github.com/bibliolabs/docCookies/issues"},"main":"docCookies.umd.js","files":["docCookies.js","docCookies.umd.js"],"scripts":{"prepublish":"umd $npm_package_name $npm_package_files_0 $npm_package_main"},"license":"GPL-3.0","keywords":["mozilla","cookie","browser"],"devDependencies":{"umd":"^3.0.0"},"gitHead":"3a0b68e638675d47f4cabb65d654bbae03a9e3da","_id":"doc-cookies@1.0.1","_shasum":"d530b4b2d0aaf6d2927273bb8bed3f2629ff891a","_from":".","_npmVersion":"2.13.0","_nodeVersion":"0.12.0","_npmUser":{"name":"bibliolabs","email":"it@bibliolabs.com"},"dist":{"shasum":"d530b4b2d0aaf6d2927273bb8bed3f2629ff891a","tarball":"https://registry.npmjs.org/doc-cookies/-/doc-cookies-1.0.1.tgz","integrity":"sha512-hY0cJNYCWfT7ssXrEVoISdjtIQ6iLRzPfE6izReH+xilu8gOJBk8Nx50UOtT6wW+K1olc4BPOoXiJSkb8Vkasg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGXUgewhal4cGHf8wnSdPx3dAcc/FPlnWF3b/KS8eULIAiEAhyDUK0wokCGQU7gSXm03T84ws3MDprB8cUsq9FLqmdw="}]},"maintainers":[{"name":"evanmuller","email":"evanmuller@gmail.com"},{"name":"bibliolabs","email":"it@bibliolabs.com"}],"directories":{}},"1.0.2":{"name":"doc-cookies","version":"1.0.2","description":"A complete cookies reader/writer framework with full unicode support","author":{"name":"fusionchess","url":"https://developer.mozilla.org/en-US/docs/User:fusionchess"},"contributors":[{"name":"Jason Karns","email":"jason@karns.name","url":"http://jason.karns.name"},{"name":"BiblioLabs LLC.","email":"it@bibliolabs.com","url":"http://www.biblioboard.com"}],"homepage":"https://github.com/bibliolabs/docCookies","repository":{"type":"git","url":"git+https://github.com/bibliolabs/docCookies.git"},"bugs":{"url":"https://github.com/bibliolabs/docCookies/issues"},"main":"docCookies.umd.js","files":["docCookies.js","docCookies.umd.js"],"scripts":{"prepublish":"umd $npm_package_name $npm_package_files_0 $npm_package_main"},"license":"GPL-3.0","keywords":["mozilla","cookie","browser"],"devDependencies":{"umd":"^3.0.0"},"gitHead":"36bc4c66c2961776ab697a786990fb5573ac3bfb","_id":"doc-cookies@1.0.2","_shasum":"b82acdf1c8f4cecd6e0383362fb1cca244b09fa5","_from":".","_npmVersion":"2.13.0","_nodeVersion":"0.12.0","_npmUser":{"name":"bibliolabs","email":"it@bibliolabs.com"},"dist":{"shasum":"b82acdf1c8f4cecd6e0383362fb1cca244b09fa5","tarball":"https://registry.npmjs.org/doc-cookies/-/doc-cookies-1.0.2.tgz","integrity":"sha512-7jN6Xok0uLbOD7d2O6BoaDALG6q33HbcJVwbb//fmYbYGEOxh8iTORExxQ7SVTWIVgXtnLtl5GETH9qfiAb0Kg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxPtI+rT2f4I6AOAkVV9K3Ascthl7KIex81Os/EPb8uAIhAMvL1EMVRCdMVk3I7mtsuyqH8D3rS2INeJKbDJ4pJY4M"}]},"maintainers":[{"name":"evanmuller","email":"evanmuller@gmail.com"},{"name":"bibliolabs","email":"it@bibliolabs.com"}],"directories":{}},"1.1.0":{"name":"doc-cookies","version":"1.1.0","description":"Simple cookie framework with full Unicode support ","main":"cookies.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/madmurphy/cookies.js.git"},"author":{"name":"madmurphy"},"license":"GPL-3.0","bugs":{"url":"https://github.com/madmurphy/cookies.js/issues"},"homepage":"https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie/Simple_document.cookie_framework","gitHead":"1a8fdd18a1962adc79842586eebda15575c5679f","_id":"doc-cookies@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.11.1","_npmUser":{"name":"bibliolabs","email":"it@bibliolabs.com"},"dist":{"integrity":"sha512-dHjaBAGQKBAQ4j5uwOlVeENrBhpSurlRYRnpsAxoOBhZyNLkvhvr1qcDqrv8uwy41Z3P5RulHhKxnHm7MlEnRA==","shasum":"bf7a4e2b708d137463e10acc45a60d39e3a91a9f","tarball":"https://registry.npmjs.org/doc-cookies/-/doc-cookies-1.1.0.tgz","fileCount":8,"unpackedSize":52688,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbOoReCRA9TVsSAnZWagAAmhQP/2EDASmYYrV1h6/f6BgI\ntpam1PmcW4jWNuHrltiEQrhqEXQAE/wCK1kMUX0tXOpIgVd3EqCd63rdSNrN\nsyEarlz93kR4Qvm0Yl89QcE+X8YTn8sf5bgXxf19tsybbjcsPNc6RbKy9AJT\n6EQSOv3M3AfPgpiI+JNLUMO6QQPBeNptC1sIfFuxMJt8b3vaPOqaeg3TPA7+\nmHlCkPBmqsqEcHTBpP45qKwOcKPEZ0Q+PrDMF3ZCFBZ30zDrAjPuLnXJW+qY\nYbgZzdT05GtfZ+L6R20rkf/IiOiLYbkvZ4g3h6SHkmugHlawowul132MoIOK\nsvdnJWpVEa05K7mO5h25aeae6rbSyvruOiHbJIrYk+9J6Rv92L45tLBkIIsz\nLxUM3ndSVQY3QwFtvHZgh5PP8W+pX+bSn1H6AQyMhoRBOk+TiGbeNA49PrGb\nJynWBEsQH4ktLPSqnCZzazytuwhtmlyrQIa7VU65U4oHyn+yh59dbJjLmbkH\nB3pIDIhJ/Mm/yDJRTw74boTD4SDbJVWHQqveG5MlDlOJ5X93OrY9gpdHLkFy\nwSJwCG881LHc4B3JdWgEw/MJChjHt+nU3GnhtI9oUHLdB+Os/eOtHCVN/jKE\nDdlqvmrn4svlfWJZlh8VgO89NucnSCii4XVEa5BHfL+sO7u3rHc6KXvYjeJB\nm4V/\r\n=2+Zk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFu9IP3PF21ez8LaAY77qmg3GjubgAYUP/5MbXTIHzyoAiBcFmRV/g5fLL6XQnT+rzzQcG1oAhUeJB64YnrEccv2MA=="}]},"maintainers":[{"name":"bibliolabs","email":"it@bibliolabs.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/doc-cookies_1.1.0_1530561630215_0.8488384274979781"},"_hasShrinkwrap":false}},"readme":"Simple cookie framework\n=======================\n\n\nA complete cookies reader/writer with full Unicode support\n----------------------------------------------------------\n\nAs cookies are just specially formatted strings it is sometimes difficult to manage them. This library aims to abstract the access to `document.cookie` by defining an object (`docCookies`) that is partially consistent with a [`Storage` object](https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Storage#Storage). It also offers full Unicode support.\n\n\nUsage\n-----\n\n\n### Writing a cookie\n\n\n##### Syntax\n\n```js\ndocCookies.setItem(name, value[, end[, path[, domain[, secure]]]])\n```\n\n\n##### Description\n\nCreate/overwrite a cookie.\n\n\n##### Parameters\n\n<dl><dt>\n\n`name`\n\n</dt><dd>\n\nThe [name](https://developer.mozilla.org/en-US/docs/Web/API/document/cookie#new-cookie_syntax) of the cookie to create/overwrite ([`string`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String)).\n\n</dd><dt>\n\n`value`\n\n</dt><dd>\n\nThe [value](https://developer.mozilla.org/en-US/docs/Web/API/document/cookie#new-cookie_syntax) of the cookie ([`string`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String)).\n\n</dd><dt>\n\n`end` _(optional)_\n\n</dt><dd>\n\nThe [`max-age`](https://developer.mozilla.org/en-US/docs/Web/API/document/cookie#new-cookie_max-age) in seconds (e.g. `31536e3` for a year, [`Infinity`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Infinity) for a never-expire cookie), or the [`expires`](https://developer.mozilla.org/en-US/docs/Web/API/document/cookie#new-cookie_expires) date in [`GMTString`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toGMTString) format or as [`Date` object](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date); if not, the specified the cookie will expire at the end of the session ([`number`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number) &ndash; finite or [`Infinity`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Infinity) &ndash; [`string`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String), [`Date` object](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date) or [`null`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null)).\n\n</dd></dl>\n\n\n> **Note:** Despite [officially defined in RFC 6265](https://tools.ietf.org/html/rfc6265#section-5.2.2), the use of `max-age` is not compatible with any version of Internet Explorer, Edge and some mobile browsers. Therefore passing a number to the `end` parameter might not work as expected. A possible solution might be to convert the the relative time to an absolute time. For instance, the following code:\n> \n> ```js\n> docCookies.setItem(\"mycookie\", \"Hello world!\", 150);\n> ```\n> \n> can be rewritten using an absolute date, as in the following example:\n> \n> ```js\n> function maxAgeToGMT (nMaxAge) {\n>   return nMaxAge === Infinity ? \"Fri, 31 Dec 9999 23:59:59 GMT\" : (new Date(nMaxAge * 1e3 + Date.now())).toUTCString();\n> }\n> \n> docCookies.setItem(\"mycookie\", \"Hello world!\", maxAgeToGMT(150));`\n> ```\n> \n> In the code above the function `maxAgeToGMT()` is used to create a [`GMTString`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toGMTString) from a relative time (i.e., from an \"age\").\n\n<dl><dt>\n\n`path` _(optional)_\n\n</dt><dd>\n\nThe [`path`](https://developer.mozilla.org/en-US/docs/Web/API/document/cookie#new-cookie_path) from where the cookie will be readable. E.g., `\"/\"`, `\"/mydir\"`; if not specified, defaults to the current path of the current document location ([`string`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String) or [`null`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null)). The path must be _absolute_ (see [RFC 2965](http://www.ietf.org/rfc/rfc2965.txt)). For more information on how to use relative paths in this argument, see [this paragraph](https://developer.mozilla.org/en-US/docs/Web/API/document/cookie#Using_relative_URLs_in_the_path_parameter).\n\n</dd><dt>\n\n`domain` _(optional)_\n\n</dt><dd>\n\nThe [`domain`](https://developer.mozilla.org/en-US/docs/Web/API/document/cookie#new-cookie_domain) from where the cookie will be readable. E.g., `\"example.com\"`, `\".example.com\"` (includes all subdomains) or `\"subdomain.example.com\"`; if not specified, defaults to the host portion of the current document location ([`string`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String) or [`null`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null)).\n\n</dd><dt>\n\n`secure` _(optional)_\n\n</dt><dd>\n\nThe cookie will be transmitted only over [`secure`](https://developer.mozilla.org/en-US/docs/Web/API/document/cookie#new-cookie_secure) protocol as https ([`boolean`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Boolean) or [`null`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null)).\n\n</dd></dl>\n\n\n### Getting a cookie\n\n\n##### Syntax\n\n```js\ndocCookies.getItem(name)\n```\n\n\n##### Description\n\nRead a cookie. If the cookie doesn't exist a [`null`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null) value will be returned.\n\n\n##### Parameters\n\n<dl><dt>\n\n`name`\n\n</dt><dd>\n\nThe [name](https://developer.mozilla.org/en-US/docs/Web/API/document/cookie#new-cookie_syntax) of the cookie to read ([`string`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String)).\n\n</dd></dl>\n\n\n### Removing a cookie\n\n\n##### Syntax\n\n```js\ndocCookies.removeItem(name[, path[, domain]])\n```\n\n\n##### Description\n\nDelete a cookie.\n\n\n##### Parameters\n\n<dl><dt>\n\n`name`\n\n</dt><dd>\n\nThe [name](https://developer.mozilla.org/en-US/docs/Web/API/document/cookie#new-cookie_syntax) of the cookie to remove ([`string`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String)).\n\n</dd><dt>\n\n`path` _(optional)_\n\n</dt><dd>\n\nE.g., `\"/\"`, `\"/mydir\"`; if not specified, defaults to the current path of the current document location ([`string`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String) or [`null`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null)). The path must be _absolute_ (see [RFC 2965](http://www.ietf.org/rfc/rfc2965.txt)). For more information on how to use relative paths in this argument, see [this paragraph](https://developer.mozilla.org/en-US/docs/Web/API/document/cookie#Using_relative_URLs_in_the_path_parameter).\n\n</dd><dt>\n\n`domain` _(optional)_\n\n</dt><dd>\n\nE.g., `\"example.com\"`, or `\"subdomain.example.com\"`; if not specified, defaults to the host portion of the current document location ([`string`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String) or [`null`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null)), but not including subdomains. Contrary to earlier specifications, leading dots in domain names are ignored. If a domain is specified, subdomains are always included.\n\n</dd></dl>\n\n**Note:** To delete cookies that span over subdomains, you need to explicitate the domain attribute in `removeItem()` as well as `setItem()`.\n\n\n### Testing a cookie\n\n\n##### Syntax\n\n```js\ndocCookies.hasItem(name)\n```\n\n\n##### Description\n\nCheck whether a cookie exists in the current position.\n\n\n##### Parameters\n\n<dl><dt>\n\n`name`\n\n</dt><dd>\n\nThe [name](https://developer.mozilla.org/en-US/docs/Web/API/document/cookie#new-cookie_syntax) of the cookie to test ([`string`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String)).\n\n</dd></dl>\n\n\n### Getting the list of all cookies\n\n\n##### Syntax\n\n```js\ndocCookies.keys()\n```\n\n\n##### Description\n\nReturns an array of all readable cookies from this location.\n\n\n### Example usage:\n\n```js\ndocCookies.setItem(\"test0\", \"Hello world!\");\ndocCookies.setItem(\"test1\", \"Unicode test: \\u00E0\\u00E8\\u00EC\\u00F2\\u00F9\", Infinity);\ndocCookies.setItem(\"test2\", \"Hello world!\", new Date(2020, 5, 12));\ndocCookies.setItem(\"test3\", \"Hello world!\", new Date(2027, 2, 3), \"/blog\");\ndocCookies.setItem(\"test4\", \"Hello world!\", \"Wed, 19 Feb 2127 01:04:55 GMT\");\ndocCookies.setItem(\"test5\", \"Hello world!\", \"Fri, 20 Aug 88354 14:07:15 GMT\", \"/home\");\ndocCookies.setItem(\"test6\", \"Hello world!\", 150);\ndocCookies.setItem(\"test7\", \"Hello world!\", 245, \"/content\");\ndocCookies.setItem(\"test8\", \"Hello world!\", null, null, \"example.com\");\ndocCookies.setItem(\"test9\", \"Hello world!\", null, null, null, true);\ndocCookies.setItem(\"test1;=\", \"Safe character test;=\", Infinity);\n\nalert(docCookies.keys().join(\"\\n\"));\nalert(docCookies.getItem(\"test1\"));\nalert(docCookies.getItem(\"test5\"));\ndocCookies.removeItem(\"test1\");\ndocCookies.removeItem(\"test5\", \"/home\");\nalert(docCookies.getItem(\"test1\"));\nalert(docCookies.getItem(\"test5\"));\nalert(docCookies.getItem(\"unexistingCookie\"));\nalert(docCookies.getItem());\nalert(docCookies.getItem(\"test1;=\"));\n```\n\n","maintainers":[{"name":"bibliolabs","email":"it@bibliolabs.com"}],"time":{"modified":"2022-06-15T06:34:09.928Z","created":"2015-02-13T21:51:20.629Z","0.0.1":"2015-02-13T21:51:20.629Z","0.0.2":"2015-06-16T22:57:14.052Z","1.0.0":"2015-07-02T18:50:14.576Z","1.0.1":"2015-08-26T17:43:33.399Z","1.0.2":"2015-08-26T17:53:00.963Z","1.1.0":"2018-07-02T20:00:30.266Z"},"homepage":"https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie/Simple_document.cookie_framework","repository":{"type":"git","url":"git+https://github.com/madmurphy/cookies.js.git"},"bugs":{"url":"https://github.com/madmurphy/cookies.js/issues"},"license":"GPL-3.0","readmeFilename":"README.md","author":{"name":"madmurphy"},"users":{"evanmuller":true,"planir":true}}