{"_id":"react-cookies","_rev":"10-a187b14280f9548c93086439c8e692c4","name":"react-cookies","description":"Load and save cookies with React","dist-tags":{"latest":"0.1.1","beta":"0.1.2-beta.0"},"versions":{"0.0.1":{"name":"react-cookies","version":"0.0.1","description":"Load and save cookies with React","main":"build/cookie.js","repository":{"type":"git","url":"git+ssh://git@github.com/bukinoshita/react-cookies.git"},"author":{"name":"Bu Kinoshita","email":"bukinoshita@gmail.com"},"license":"MIT","scripts":{"lint":"eslint --ext .js .","test":"npm run lint && node_modules/.bin/jest","watch":"jest --watch","build":"babel src -d build --ignore __tests__"},"config":{"ghooks":{"pre-commit":"npm test"}},"dependencies":{"cookie":"^0.3.1","object-assign":"^4.1.1"},"devDependencies":{"babel-cli":"^6.24.1","babel-eslint":"^7.2.3","babel-jest":"^19.0.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-latest":"^6.24.1","babel-preset-stage-2":"^6.24.1","babel-register":"^6.24.1","eslint":"^3.19.0","eslint-config-cyprex":"^1.1.2","eslint-plugin-flowtype":"^2.32.1","ghooks":"^2.0.0","jest":"^19.0.2"},"keywords":["cookie","cookies","react","reactjs","jsx"],"gitHead":"9c6f594959c7e09c677d15284051baff4af3b100","bugs":{"url":"https://github.com/bukinoshita/react-cookies/issues"},"homepage":"https://github.com/bukinoshita/react-cookies#readme","_id":"react-cookies@0.0.1","_shasum":"7fcfb6f72943cd8718213e2cb48890aa8857a3ed","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"bukinoshita","email":"bukinoshita@gmail.com"},"dist":{"shasum":"7fcfb6f72943cd8718213e2cb48890aa8857a3ed","tarball":"https://registry.npmjs.org/react-cookies/-/react-cookies-0.0.1.tgz","integrity":"sha512-LFipUBsFoFkPsC9bp+MBNHpACGC7X0FiqjelS81Oa5qauAuwJg4XornDKLb4kFP6WHZhSnClkPDKx0k79Domhw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5fRke9b9TuCgKmkWmP3ikiaQgkzgK1L4lhcR+UuBR2wIgOHI911luZk+Xtav5qfVKceu/AbaoEu4loE7vsTwZIV4="}]},"maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-cookies-0.0.1.tgz_1493942960933_0.18499779608100653"},"directories":{}},"0.1.0":{"name":"react-cookies","version":"0.1.0","description":"Load and save cookies with React","main":"build/cookie.js","repository":{"type":"git","url":"git+ssh://git@github.com/bukinoshita/react-cookies.git"},"author":{"name":"Bu Kinoshita","email":"bukinoshita@gmail.com"},"scripts":{"lint":"xo --quiet","test":"npm run lint && node_modules/.bin/jest","watch":"jest --watch","build":"babel src -d build --ignore __tests__","precommit":"lint-staged"},"keywords":["react-cookies","react-cookie","cookie","cookies","react","reactjs","jsx"],"dependencies":{"cookie":"^0.3.1","object-assign":"^4.1.1"},"devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^19.0.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-latest":"^6.24.1","babel-preset-stage-2":"^6.24.1","babel-register":"^6.24.1","eslint-config-prettier":"^2.2.0","husky":"^0.14.1","jest":"^19.0.2","lint-staged":"^4.0.0","prettier":"^1.4.4","xo":"^0.18.2"},"xo":{"space":true,"esnext":true,"semicolon":false,"ignores":["build/*.js","__tests__/*.js"],"globals":["document"],"rules":{"func-names":0,"object-curly-spacing":0}},"lint-staged":{"src/*.js":["npm run test","prettier --semi false --single-quote --write","git add"]},"license":"MIT","gitHead":"77e65615ed334a4102b6219d99f2b1caf5b1c73c","bugs":{"url":"https://github.com/bukinoshita/react-cookies/issues"},"homepage":"https://github.com/bukinoshita/react-cookies#readme","_id":"react-cookies@0.1.0","_shasum":"6bb883f2d1a397f138a4110300b46fe25df8f1a9","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"bukinoshita","email":"bukinoshita@gmail.com"},"dist":{"shasum":"6bb883f2d1a397f138a4110300b46fe25df8f1a9","tarball":"https://registry.npmjs.org/react-cookies/-/react-cookies-0.1.0.tgz","integrity":"sha512-c93DztC54l6FIlVwsI4eZrh4Boz151pBYtnPKFIC2Bh+lOXXhoyuu6ut2CGdPqNiCo8+Dchb19XXD4l5MynQ3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRBJj9rPuWUDy0PojqKDwfZRe+1VErk4uCz4UegCfYYgIgeGpJBSTmYWBl75952E4hYVxFWF/jZhmIzR7AdZD2nfg="}]},"maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-cookies-0.1.0.tgz_1498422694631_0.09836990083567798"},"directories":{}},"0.1.1":{"name":"react-cookies","version":"0.1.1","description":"Load and save cookies with React","main":"build/cookie.js","repository":{"type":"git","url":"git@github.com:bukinoshita/react-cookies.git"},"author":{"name":"Bu Kinoshita","email":"bukinoshita@gmail.com"},"scripts":{"lint":"xo --quiet","test":"npm run lint && node_modules/.bin/jest","watch":"node_modules/.bin/jest --watch","build":"node_modules/.bin/babel src -d build --ignore __tests__","precommit":"lint-staged"},"keywords":["react-cookies","react-cookie","cookie","cookies","react","reactjs","jsx"],"dependencies":{"cookie":"^0.3.1","object-assign":"^4.1.1"},"devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^19.0.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-latest":"^6.24.1","babel-preset-stage-2":"^6.24.1","babel-register":"^6.24.1","eslint-config-prettier":"^2.2.0","husky":"^0.14.1","jest":"^19.0.2","lint-staged":"^4.0.0","prettier":"^1.4.4","xo":"^0.18.2"},"xo":{"space":true,"esnext":true,"semicolon":false,"ignores":["build/*.js","__tests__/*.js"],"globals":["document"],"rules":{"func-names":0,"object-curly-spacing":0}},"lint-staged":{"src/*.js":["npm run test","prettier --semi false --single-quote --write","git add"]},"license":"MIT","licenseText":"MIT License\n\nCopyright (c) 2017 Bu Kinoshita\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-cookies@0.1.1","dist":{"shasum":"2a35807e04f5a13f58ccd1a9fb66574506873c88","integrity":"sha512-PP75kJ4vtoHuuTdq0TAD3RmlAv7vuDQh9fkC4oDlhntgs9vX1DmREomO0Y1mcQKR9nMZ6/zxoflaMJ3MAmF5KQ==","tarball":"https://registry.npmjs.org/react-cookies/-/react-cookies-0.1.1.tgz","fileCount":8,"unpackedSize":16808,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3saXCRA9TVsSAnZWagAAC4IP/0jv0YrSovPoOBbIiOrH\nTw9pc38SyeIdjz+sTO8dFogDO7DgLyOrvUHZs9dv8XSr0FhjiMxBZpWfkLBN\nbN50Dm1S+sW/fKpOE0J7ostFWsM5OlEF/U0+eZfz/AkXxfxOO+Xm0E5IyE33\norX6URSAtQpa1eeryA1+UvTAD/pamvnUgre5ppOiaDcoRFlutDvNMwCbqOhT\nAG760KAKx3WZezLdji4bwpeH8wzIAMolS1Dg0LE+d9IY/v7a8+K+wwMwlxGN\nFbflHa0H3v5rpQ84Buyasnr5FiW4/OGaJma7oWTg5lpN0pOKOS73toJapNIM\n0PakZ9FGS1UWMEWOy6ctDio1AJnouBU02Lxa9Pm5WHNw6/Bw7KYp1pBFFiVj\njkFPZCTiYsSk7bGkPdDL6sWyYzihSjfBkex598dRze+v8qn32AXhSukIN9gE\ns20TP9b+HTceeaAhWyo8x2UPg3BlRXv2COs/KWoQgQFavO1YXL9Kzn4YgmPY\nMh5fAHF1iR67B3DyNTAe0SfjnQaHfS/k0rd4eOpCqmfnQnlhAdUycZ3XFCzg\nqfAqB8pjTgpyTXJlea+eOhiiBk6Lb0i15/ux2cRTuVe8cQ5iMGex7kRfRnER\nn8YpWclz2ZxDNZrH6Vfj1YQq5QPhQYSx3f5T2eUybvRKL2ReWJ3OEcnhG/aK\n+0Jv\r\n=Y0Wm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEg6l4wVwmj4TSlye+inv0EG8PhzmtyzmK/91gxirgUZAiAB1egGCLrFAVlNgo0SDH3X8oW52FP7bN7o1gJO//j99g=="}]},"maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"}],"_npmUser":{"name":"bukinoshita","email":"bukinoshita@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-cookies_0.1.1_1558103702754_0.2124028604274557"},"_hasShrinkwrap":false},"0.1.2-beta.0":{"name":"react-cookies","version":"0.1.2-beta.0","description":"Load and save cookies with React","main":"index.js","repository":{"type":"git","url":"https://github.com/bukinoshita/react-cookies.git"},"author":{"name":"Bu Kinoshita","email":"bukinoshita@gmail.com"},"license":"MIT","scripts":{"test":"xo"},"keywords":["react-cookies","react-cookie","cookie","cookies","react"],"dependencies":{"cookie":"^0.4.0"},"devDependencies":{"ava":"2.0.0","eslint-config-prettier":"4.3.0","husky":"2.3.0","lint-staged":"8.1.7","prettier":"1.17.1","xo":"0.24.0"},"xo":{"extends":["prettier"],"globals":["document"],"ignores":["examples"]},"lint-staged":{"*.js":["yarn test","prettier --semi false --single-quote --write","git add"]},"readmeFilename":"readme.md","readme":"# react-cookies [![Build Status](https://travis-ci.org/bukinoshita/react-cookies.svg?branch=master)](https://travis-ci.org/bukinoshita/react-cookies)\n\n> Load and save cookies with React\n\n## Install\n\n```bash\n$ yarn add react-cookies\n```\n\n## Quick start\n\n```js\n// Packages\nimport React from 'react'\nimport { setCookie, getCookie, removeCookie } from 'react-cookies'\n\nclass Example extends Component {\n  componentDidMount() {\n    setCookie('my-cookie', 'my-cookie-value', {\n      maxAge: 30 * 24 * 60 * 60,\n      path: '/'\n    })\n\n    getCookie('my-cookie')\n\n    removeCookie('my-cookie')\n  }\n\n  render() {\n    return <h1>My example</h1>\n  }\n}\n```\n\n## API\n\n### .setCookie(name, value, [options])\n\nSet a cookie.\n\n#### name\n\nThe cookie name\n\nType: `string`<br />\nRequired\n\n#### value\n\nThe cookie value\n\nType: `any`<br />\nRequired\n\n#### options\n\nSupport all the cookie options from the [RFC 6265](https://tools.ietf.org/html/rfc6265#section-4.1.2.1).\n\nType: `object`<br />\n\n- [expire](https://tools.ietf.org/html/rfc6265#section-4.1.2.1): Indicates the maximum lifetime of the cookie represented as the date and time\n- [maxAge](https://tools.ietf.org/html/rfc6265#section-4.1.2.2): Indicates the maximum lifetime of the cookie represented as the number of seconds\n- [domain](https://tools.ietf.org/html/rfc6265#section-4.1.2.3): Specifies those hosts to which the cookie will be sent\n- [path](https://tools.ietf.org/html/rfc6265#section-4.1.2.4): The scope of each cookie is limited to a set of paths\n- [secure](https://tools.ietf.org/html/rfc6265#section-4.1.2.5): Limits the scope of the cookie to \"secure\" channels (where \"secure\" is defined by the user agent)\n- [httpOnly](https://tools.ietf.org/html/rfc6265#section-4.1.2.6): Limits the scope of the cookie to HTTP requests\n\n### .getCookie(name)\n\nGet a cookie.\n\n#### name\n\nThe cookie name.\n\nType: `string`<br />\nRequired\n\n### .removeCookie(name)\n\nRemove a cookie.\n\n#### name\n\nThe cookie name.\n\nType: `string`<br />\nRequired\n\n### .getAllCookies()\n\nGet all cookies.\n\n## License\n\n[MIT](https://github.com/bukinoshita/react-cookies/blob/master/license) &copy; Bu Kinoshita\n","licenseText":"MIT License\n\nCopyright (c) 2019 Bu Kinoshita <bukinoshita@gmail.com>  \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"react-cookies@0.1.2-beta.0","dist":{"shasum":"6bde449e4866aa041fc6655650243ff86a50d40c","integrity":"sha512-7kx2KS7KzCb/Dl6sNU9co63mRZL0XW2NiBKjFRmUfEbMkC+ZvGJOpOOUpMXbYdqEgoHvhueB2fj/DzSG/rq9JA==","tarball":"https://registry.npmjs.org/react-cookies/-/react-cookies-0.1.2-beta.0.tgz","fileCount":10,"unpackedSize":5473,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc9uF0CRA9TVsSAnZWagAAdmAP/RBlsdvjTy/Tme8kxY9S\n/3vwuxTmCbaeS0vuy8YKHZ60Rkq1QOxos4LJKbrfbgn7pXV1d2h6Zo00GNiG\nmPwGbr/6rmNe5KgXrTQ9dPGj9mWPJYLPQnwQGbpzsxyzU9p9Tp4Q4wpHt6kW\n5N4aeuOJNuKs7BVMxSSyPrhscRLIRQ/JV5txWiUZdjzh6MGdWMa1Y1MvK7Vr\nW3WTcBFCN9Czsu08yE5zKhMPjGDMikEuivaQPqyUVsQ7D0RC8/0UoUVaJGIm\nJLkwrqGtsh4bS1exCQtZfsdKQfOeGLuH+4l0oex0SpHcFNgltBY0KZcJfwp6\nvkk6IkgOoofQBEuojZs8zSbSYJwfqSsFBurZ6L+KwbYVlVQuE7rFy7SmYLg2\nfQs/J2ykcQxjmolORrtAYDSzJ56XAX7E1aoLOs84RI0mZ1TSOCIOZjE5WV97\nYQC36LJMPppAsnYM4RNNrimnJ5a5SLEOH4sIC80oi7E4C120rFxA2nbP9aww\nyXT8839tA0W/29UtKJNG3Wr8fWGMfGrqj/YbvqEjaqwCIVluuM7QIbtvp/DF\natI1PSOEXzcNEF5WZwateHsv3bhK2VgmKeNBeH3+VeuQRx45NHrwd/RU7xE6\nY2rwaQ2h6VrrbdmVrbUP8gerZG1/4k/8NMC2FAfVtJwJxIPj/zX3wHJ4MDPE\nOmBF\r\n=YI2M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAyVth6hNhh2EbOyhty+PWddbSuN3O702jMobGyP1+I6AiEAhT4UAojEJtnydbXkVXW/58P9Rsa2sjDJ6O2fULXJ1ek="}]},"maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"}],"_npmUser":{"name":"bukinoshita","email":"bukinoshita@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-cookies_0.1.2-beta.0_1559683444194_0.1200518315625323"},"_hasShrinkwrap":false}},"readme":"","maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"}],"time":{"modified":"2022-06-25T19:00:30.399Z","created":"2017-05-05T00:09:21.188Z","0.0.1":"2017-05-05T00:09:21.188Z","0.1.0":"2017-06-25T20:31:34.796Z","0.1.1":"2019-05-17T14:35:02.877Z","0.1.2-beta.0":"2019-06-04T21:24:04.354Z"},"keywords":["react-cookies","react-cookie","cookie","cookies","react","reactjs","jsx"],"repository":{"type":"git","url":"git@github.com:bukinoshita/react-cookies.git"},"author":{"name":"Bu Kinoshita","email":"bukinoshita@gmail.com"},"license":"MIT","readmeFilename":"","users":{"rahulraghavankklm":true}}