{"_id":"@0x44ru5h/cookie-jar","_rev":"2-5db44384443fa2e065dd2c8edb04f0a3","name":"@0x44ru5h/cookie-jar","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@0x44ru5h/cookie-jar","version":"1.0.0","description":"a small api for cookies","main":"./dist/jar.min.js","directories":{"test":"tests"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/0x44RU5H/cookie-jar.git"},"author":{"name":"Aarush Gupta","email":"aarush@theaarushgupta.com","url":"https://theaarushgupta.com"},"license":"AGPL-3.0-or-later","bugs":{"url":"https://github.com/0x44RU5H/cookie-jar/issues"},"homepage":"https://github.com/0x44RU5H/cookie-jar#readme","gitHead":"ecc05a19cf4fbded15702cb1b80adf03ec8e3390","_id":"@0x44ru5h/cookie-jar@1.0.0","_nodeVersion":"10.19.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tnAdIYrSoCtkcblHztoBsg21y8xZzAWUpoPeJ7ScuY79zdV+/1dlJx/Gl+Wyr2AqfhrtF1ZL5hX1hfeAPFIzfA==","shasum":"88279d60f884aed402b4f7e1a7044030bbdbd1b2","tarball":"https://registry.npmjs.org/@0x44ru5h/cookie-jar/-/cookie-jar-1.0.0.tgz","fileCount":7,"unpackedSize":37949,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhue3ECRA9TVsSAnZWagAAQm8P/1wiH7FfL/mzpoRejLxj\nyYVuWZX1ABiP+0GV/8q0EJdPl9rELlykSGBWC+ncoOyUq+YdkHy3Clmio0nj\n9k0/PFEuKQEpj70q6J0Oj+2xO34UdE9F9Ohg0dyqSWC6No35ZDq3QUuib4J7\nZZoasDsUEKPE3VnGvqVkB/Sk8PJgtzHXRHDT+9cTfiayjkZxubMqU6C70Cy8\nPTE7UScoAJ+tADqki3+fcK4gqxqg5dfdxIBqcRYtkyhdm85Wy/QKo7oPSD+h\n08XwoWxB13KY18fnHf8P89oQIt1+uSgSLOiI2qZknYJnXHdwoPQ6SrR4xaTM\nLtor7oNNCxKmyZ1kkvLteyiWa0EcxcXdLYnHEhV4qPvIFVKJm+tq4l/jq1id\n0+sRNU2dXbij9cLb2Tjd5HZv9pd4c6Zn9QQvFGVyAiME1wyIKOq5H2qBDt/Q\n5KX2+iGxQQW8pFWF5esZ5Qg+cEqw2UZs/MGQHUe+C7FICQ7fpDJIEHBeL0cV\nuq8fEnSXMKtD7EcWRWVsquaWnGO7ff7cVi9Lf4z1grXKjODx+N3d7dZtIKcY\n6ERHLZcZqM61GQ8ZoGRoSODTN+Q0GhqgIuBJ1qTpdh5UxbKgSajvGbWT2dps\nUcChvnMUS+WlNG+IuVwyON+TcrtxAjlKqIaR0JNM13AKYNZYS2f+TEwCJpSs\nK5+4\r\n=BSAy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5udq52RzfAPKxM3+wbvlulXQBbuY0U0c96MV6VowFUwIgL1J99OH4mRbGALOCRsvUmhBJOem4HbaE+AlFT1MuGG0="}]},"_npmUser":{"name":"0x44ru5h","email":"hiaarushgupta+npm@gmail.com"},"maintainers":[{"name":"0x44ru5h","email":"hiaarushgupta+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookie-jar_1.0.0_1634503396288_0.9892159800108109"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-17T20:43:16.239Z","1.0.0":"2021-10-17T20:43:16.480Z","modified":"2022-04-04T10:27:42.161Z"},"maintainers":[{"name":"0x44ru5h","email":"hiaarushgupta+npm@gmail.com"}],"description":"a small api for cookies","homepage":"https://github.com/0x44RU5H/cookie-jar#readme","repository":{"type":"git","url":"git+https://github.com/0x44RU5H/cookie-jar.git"},"author":{"name":"Aarush Gupta","email":"aarush@theaarushgupta.com","url":"https://theaarushgupta.com"},"bugs":{"url":"https://github.com/0x44RU5H/cookie-jar/issues"},"license":"AGPL-3.0-or-later","readme":"<h1 align = \"center\">Cookie Jar <code>v0.0.1</code></h1>\n<h3 align = \"center\">a small api for cookies</h3>\n\n# Overview\n\n`cookie-jar` is a minimal javascript library that allows developers to access and use cookies quickly, simply, and efficiently.\n\n# API\n\n## `set(name, value)`\nCreate a cookie\n\n``` javascript\njar.set(\"username\", \"aarushgupta\")\n```\n\nThe code above creates a cookie with name `username` and value `aarushgupta`.\n\n## `get(name)`\nGet the value of a cookie\n\n``` javascript\njar.get(\"username\")\n```\n\nThe code above returns `aarushgupta`, the value set of `username`.\n\n\n## `update(name, new)`\nUpdate the value of a cookie\n\n``` javascript\njar.set(\"username\", \"theaarushgupta\")\n```\n\nThe code updates `username` and changes its value to `theaarushgupta`.\n\n## `remove(name)`\nRemoves a cookie\n\n``` javascript\njar.remove(\"username\")\n```\n\nThe code above removes the cookie `username`.\n\n# Examples\n\n## Basic Usage\n\n``` js\nlet jar = new Jar()\n\njar.set(\"username\", \"aarushgupta\")\nconsole.log(jar.get(\"username\"))\n\njar.update(\"username\", \"theaarushgupta\")\nconsole.log(jar.get(\"username\"))\n\njar.remove(\"username\")\n```\n\nThis code sets a cookie, gets its value, updates it, and then removes it, showing the simplicity of the REST-like `Jar` class. \n\nConsole output\n```\naarushgupta\ntheaarushgupta\n```\n\n# Browser Compatibility\n`cookie-jar` works in all modern browsers, both desktop and mobile.\n\n# Copyright &copy; 2021 Aarush Gupta\nThis code is copyrighted but licensed to the public under the GNU AGPLv3 license and any later versions.\n","readmeFilename":"README.md"}