Files
Seasoned/.npm/_cacache/content-v2/sha512/3e/1a/ff52f9cdcf1fee4553ace691696bff9324a7ffcea54be3a23432eaebd7fd0531aca321012ca0aa5e680a874adb29ab0bb93daf5df2120554ebada91fd80b

1 line
234 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{"_id":"js-cookie","_rev":"133-d4cf6de6bbac022e53650734ce451fb3","name":"js-cookie","description":"A simple, lightweight JavaScript API for handling cookies","dist-tags":{"latest":"3.0.5","beta":"3.0.0-beta.4","rc":"3.0.0-rc.4"},"versions":{"1.5.0":{"name":"js-cookie","version":"1.5.0","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"0.4.5","grunt-compare-size":"0.4.0","grunt-contrib-connect":"0.10.1","grunt-contrib-jshint":"0.11.1","grunt-contrib-nodeunit":"0.4.1","grunt-contrib-qunit":"0.7.0","grunt-contrib-uglify":"0.9.1","grunt-contrib-watch":"0.6.1","grunt-saucelabs":"8.6.0","gzip-js":"0.3.2","jquery":"2.1.3","qunitjs":"1.18.0","requirejs":"2.1.17"},"jspm":{"main":"js.cookie","files":["src/js.cookie.js"],"buildConfig":{"uglify":true}},"jam":{"main":"src/js.cookie.js","include":["src/js.cookie.js"]},"gitHead":"087d36ac338b92c001d3b6fb344874cbf37f8298","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie","_id":"js-cookie@1.5.0","_shasum":"9a3a12418fbd2d5061a6a970771ed3084a6bfe99","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.0","_npmUser":{"name":"fagner","email":"github@fagnermartins.com"},"maintainers":[{"name":"fagner","email":"github@fagnermartins.com"}],"dist":{"shasum":"9a3a12418fbd2d5061a6a970771ed3084a6bfe99","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-1.5.0.tgz","integrity":"sha512-EbyaqhtTyyZ+wu1fSSHkyMnuiKM+w+ql+OpvUa/XWCzft15oVbEvlOQey95n/IYEv7PmcePMN77NBvkunDs8CQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICHHckNjS9pnCMLAqjIthXRnCfHqIMBG5qIPuvB5S+FWAiEAiW+PA29u+WEbNnLnvhNNqCVYU9l55e2qRVnoT/9BTfg="}]}},"1.5.1":{"name":"js-cookie","version":"1.5.1","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["jquery-plugin","cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"0.4.5","grunt-compare-size":"0.4.0","grunt-contrib-connect":"0.10.1","grunt-contrib-jshint":"0.11.1","grunt-contrib-nodeunit":"0.4.1","grunt-contrib-qunit":"0.7.0","grunt-contrib-uglify":"0.9.1","grunt-contrib-watch":"0.6.1","grunt-saucelabs":"8.6.0","gzip-js":"0.3.2","jquery":"2.1.3","qunitjs":"1.18.0","requirejs":"2.1.17"},"jspm":{"main":"js.cookie","files":["src/js.cookie.js"],"buildConfig":{"uglify":true}},"jam":{"main":"src/js.cookie.js","include":["src/js.cookie.js"]},"gitHead":"85a7e2866c864d1c4a361525b5fc6510f7cfe4f0","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie","_id":"js-cookie@1.5.1","_shasum":"a833826f224a4ecbfb114fabf65317f8fefa967f","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.0","_npmUser":{"name":"fagner","email":"github@fagnermartins.com"},"maintainers":[{"name":"fagner","email":"gravatar@fagnermartins.com"},{"name":"carhartl","email":"klaus.hartl@gmail.com"}],"dist":{"shasum":"a833826f224a4ecbfb114fabf65317f8fefa967f","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-1.5.1.tgz","integrity":"sha512-pE43x+pKwBVgIByenRXiEcpXHUy/DoUe0yc4pktYR3227oM5YHiPfm8zAquLQcNAnC4vPYacHhYihOek1Caqwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+deU5bpcfdReqDTHugcqY8v4Jm3x3slvo/nz52b7QoAIgOeKASBttKWzdDJ82IL5V2AIbHDg89YXZwv2Rtu2j5K0="}]}},"2.0.0-pre":{"name":"js-cookie","version":"2.0.0-pre","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["jquery-plugin","cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"0.4.5","grunt-compare-size":"0.4.0","grunt-contrib-connect":"0.10.1","grunt-contrib-jshint":"0.11.1","grunt-contrib-nodeunit":"0.4.1","grunt-contrib-qunit":"0.7.0","grunt-contrib-uglify":"0.9.1","grunt-contrib-watch":"0.6.1","grunt-jscs":"1.6.0","grunt-saucelabs":"8.6.0","gzip-js":"0.3.2","qunitjs":"1.18.0","requirejs":"2.1.17"},"gitHead":"dbea5c3dd024082ccf5dd6a97e3040cfb4a79608","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie","_id":"js-cookie@2.0.0-pre","_shasum":"522c492e89f0c94731478fa685ec5eead23ff079","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.0","_npmUser":{"name":"fagner","email":"github@fagnermartins.com"},"maintainers":[{"name":"fagner","email":"gravatar@fagnermartins.com"},{"name":"carhartl","email":"klaus.hartl@gmail.com"}],"dist":{"shasum":"522c492e89f0c94731478fa685ec5eead23ff079","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-2.0.0-pre.tgz","integrity":"sha512-4+yhqSxaCLed7Med1ixyTVFEcgOI5xTWLMTkjKaS/2WkygcWzXPHiQum2gd2pW+7RZh8Pw+i77vXySDrB4hUZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEEz/L+wOrdvlnm8K6Ey+mzeyJeqdKnooVmxwCagwRiGAiEA0yKcEl7Bk6aFYGR6jOQ3K1V/Vvwt3XMrAt7UhgiAK98="}]}},"2.0.0":{"name":"js-cookie","version":"2.0.0","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["jquery-plugin","cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"0.4.5","grunt-compare-size":"0.4.0","grunt-contrib-connect":"0.10.1","grunt-contrib-jshint":"0.11.1","grunt-contrib-nodeunit":"0.4.1","grunt-contrib-qunit":"0.7.0","grunt-contrib-uglify":"0.9.1","grunt-contrib-watch":"0.6.1","grunt-jscs":"1.6.0","grunt-saucelabs":"8.6.0","gzip-js":"0.3.2","qunitjs":"1.18.0","requirejs":"2.1.17"},"gitHead":"3641d94a853034c6401d64de9fd82736c94afde7","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie","_id":"js-cookie@2.0.0","_shasum":"f315a55662452fffc79ef6acd3e64b0baa51207d","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.0","_npmUser":{"name":"fagner","email":"github@fagnermartins.com"},"maintainers":[{"name":"fagner","email":"gravatar@fagnermartins.com"},{"name":"carhartl","email":"klaus.hartl@gmail.com"}],"dist":{"shasum":"f315a55662452fffc79ef6acd3e64b0baa51207d","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-2.0.0.tgz","integrity":"sha512-5ptL1MXnfwkMGRV2+aYU5d/3qUxKrK1V//XUICHTQoH6fE4DnSgLb+R90rPupijZyFJoe7wjdCzGDIFIO7LSMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEOXM9MTjPEKIQUPMHZrM8xyhIgiB6p76HKWsr5vL8zWAiEAh4PIlP2epxW7h8YoxIizbMxmfMih9YKPF6R8WYpH2Zg="}]}},"2.1.0-pre":{"name":"js-cookie","version":"2.1.0-pre","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["jquery-plugin","cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"0.4.5","grunt-compare-size":"0.4.0","grunt-contrib-connect":"0.10.1","grunt-contrib-jshint":"0.11.1","grunt-contrib-nodeunit":"0.4.1","grunt-contrib-qunit":"0.7.0","grunt-contrib-uglify":"0.9.1","grunt-contrib-watch":"0.6.1","grunt-jscs":"1.6.0","grunt-saucelabs":"8.6.0","gzip-js":"0.3.2","qunitjs":"1.18.0","requirejs":"2.1.17"},"gitHead":"988ada83872a9f8c036ed7c39a32767e7274d5a9","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie","_id":"js-cookie@2.1.0-pre","_shasum":"dcd609bc2445137c69833a9e8c928efff0fdbc72","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.0","_npmUser":{"name":"fagner","email":"github@fagnermartins.com"},"maintainers":[{"name":"fagner","email":"gravatar@fagnermartins.com"},{"name":"carhartl","email":"klaus.hartl@gmail.com"}],"dist":{"shasum":"dcd609bc2445137c69833a9e8c928efff0fdbc72","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-2.1.0-pre.tgz","integrity":"sha512-2W9KTJvxr9mnO1ehCpwiaAOsktZCTWV5xH46sdZBg0XehQB1xll7wfFEqZ0xn6os6sW0G++HGqUyU5B8sE5oYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpgUDVZmzgN7EhIhn4gOhwN6/nY6oois/rfXDP7/O/7gIgCugA8JcH7t9Z+cASX3aZ4WM0mCTZqXNBEhEYken52cY="}]}},"2.0.1":{"name":"js-cookie","version":"2.0.1","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["jquery-plugin","cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"0.4.5","grunt-compare-size":"0.4.0","grunt-contrib-connect":"0.10.1","grunt-contrib-jshint":"0.11.1","grunt-contrib-nodeunit":"0.4.1","grunt-contrib-qunit":"0.7.0","grunt-contrib-uglify":"0.9.1","grunt-contrib-watch":"0.6.1","grunt-jscs":"1.6.0","grunt-saucelabs":"8.6.0","gzip-js":"0.3.2","qunitjs":"1.18.0","requirejs":"2.1.17"},"gitHead":"380cc86630fe807c89aaa5453e606bf6e00a7509","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie","_id":"js-cookie@2.0.1","_shasum":"d1e674d1ed5e0263b3909427a0d66e62bcbf30a4","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.0","_npmUser":{"name":"fagner","email":"github@fagnermartins.com"},"maintainers":[{"name":"fagner","email":"gravatar@fagnermartins.com"},{"name":"carhartl","email":"klaus.hartl@gmail.com"}],"dist":{"shasum":"d1e674d1ed5e0263b3909427a0d66e62bcbf30a4","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-2.0.1.tgz","integrity":"sha512-zmH7ORcW73aHL94CUyqpdikLekRScXEDBKuQpzn8c7kb9F+EPQw5itFVO8K9fRGGCL6bEo2tZhkTc6NLRQM+pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICQOEGAzuThhDPmn1wVrAGQdN6mrRsAW/0Iw+16HaAUiAiEA8V7T+NMpxR+/bOq8EHSdmltuaKpyZ/WVrl2RLCNwG7E="}]}},"2.0.2":{"name":"js-cookie","version":"2.0.2","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["jquery-plugin","cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"0.4.5","grunt-compare-size":"0.4.0","grunt-contrib-connect":"0.10.1","grunt-contrib-jshint":"0.11.1","grunt-contrib-nodeunit":"0.4.1","grunt-contrib-qunit":"0.7.0","grunt-contrib-uglify":"0.9.1","grunt-contrib-watch":"0.6.1","grunt-jscs":"1.6.0","grunt-saucelabs":"8.6.0","gzip-js":"0.3.2","qunitjs":"1.18.0","requirejs":"2.1.17"},"gitHead":"45287a3142ca1d17a096a18df7dbaca66d185d0c","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie","_id":"js-cookie@2.0.2","_shasum":"7226b704e04b91441fc22bc5967ae3d80c21fb0a","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.0","_npmUser":{"name":"fagner","email":"github@fagnermartins.com"},"maintainers":[{"name":"fagner","email":"gravatar@fagnermartins.com"},{"name":"carhartl","email":"klaus.hartl@gmail.com"}],"dist":{"shasum":"7226b704e04b91441fc22bc5967ae3d80c21fb0a","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-2.0.2.tgz","integrity":"sha512-4M59V1FFG62qInKwmBmzG/f174S1sItAGSBjAOO1icdSXzH5DxGUwh6FAGtnnybiCbuD+b1ec+ixzkaDWh4aZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0C2S//J+UsrYFHj8PG/Ok6oFk4aiZulQT6zTvPQdKlwIgS1kl7RjlZvPkiK/vMdikhtB9PQmDQuv4rl3OedTbkyk="}]}},"2.0.3":{"name":"js-cookie","version":"2.0.3","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["jquery-plugin","cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"0.4.5","grunt-compare-size":"0.4.0","grunt-contrib-connect":"0.10.1","grunt-contrib-jshint":"0.11.1","grunt-contrib-nodeunit":"0.4.1","grunt-contrib-qunit":"0.7.0","grunt-contrib-uglify":"0.9.1","grunt-contrib-watch":"0.6.1","grunt-jscs":"1.6.0","grunt-saucelabs":"8.6.0","gzip-js":"0.3.2","qunitjs":"1.18.0","requirejs":"2.1.17"},"gitHead":"4a67cb3bda1d7bc344d7339ae4efc38d890eb47c","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie","_id":"js-cookie@2.0.3","_shasum":"26c44573200fbf62303467ba1605cb6405513311","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.0","_npmUser":{"name":"fagner","email":"github@fagnermartins.com"},"maintainers":[{"name":"fagner","email":"gravatar@fagnermartins.com"},{"name":"carhartl","email":"klaus.hartl@gmail.com"}],"dist":{"shasum":"26c44573200fbf62303467ba1605cb6405513311","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-2.0.3.tgz","integrity":"sha512-pytian/L/O2T+AHyuly8t/z45a4LaQXtdksJcxnyP37EHyRZ26EyKZ6NwuDgcPodbn8wTxr0MrgeLOX6JKoIfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMHjGqFw/cVgSFMO4udgAFpAiLtFf3NcSgPDF9Cp1T5QIhAM8ubf6Be4V287pN7urBvkJpOWdA1RFk+Y2EQI30r8Cs"}]}},"2.0.4":{"name":"js-cookie","version":"2.0.4","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["jquery-plugin","cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"0.4.5","grunt-compare-size":"0.4.0","grunt-contrib-connect":"0.10.1","grunt-contrib-jshint":"0.11.1","grunt-contrib-nodeunit":"0.4.1","grunt-contrib-qunit":"0.7.0","grunt-contrib-uglify":"0.9.1","grunt-contrib-watch":"0.6.1","grunt-jscs":"1.6.0","grunt-saucelabs":"8.6.0","gzip-js":"0.3.2","qunitjs":"1.18.0","requirejs":"2.1.17"},"gitHead":"ce67410de68dc5831b45dc6630974fa0e0b75cf7","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@2.0.4","_shasum":"5f43d1872118aaf5e7a16029b70976eb7315c6a5","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"fagner","email":"gravatar@fagnermartins.com"},"dist":{"shasum":"5f43d1872118aaf5e7a16029b70976eb7315c6a5","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-2.0.4.tgz","integrity":"sha512-Awk/KbHf6RLMxcBcOwc0WFMS5e6qcz6E/n2XrNPASmxq3nw/Ck8t0WSY5VOoj9ZuiTsj/O6CPlOy/mSXnGGuUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDAzk7jkm4zUKJfbjXGte/UD7Ukg4DSzoSnWkswb/SJTAiAan2I512jVjqH6/kCqZCxMMz1dMbwSEWXb0UY5ZlU8QA=="}]},"maintainers":[{"name":"fagner","email":"gravatar@fagnermartins.com"},{"name":"carhartl","email":"klaus.hartl@gmail.com"}]},"2.1.0":{"name":"js-cookie","version":"2.1.0","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["jquery-plugin","cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"0.4.5","grunt-compare-size":"0.4.0","grunt-contrib-connect":"0.10.1","grunt-contrib-jshint":"0.11.1","grunt-contrib-nodeunit":"0.4.1","grunt-contrib-qunit":"0.7.0","grunt-contrib-uglify":"0.9.1","grunt-contrib-watch":"0.6.1","grunt-jscs":"1.6.0","grunt-saucelabs":"8.6.0","gzip-js":"0.3.2","qunitjs":"1.18.0","requirejs":"2.1.17"},"gitHead":"3f2b5e6884407c54b391483f39ddcd4c70f9243c","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie","_id":"js-cookie@2.1.0","_shasum":"479c20d0a0bb6cab81491f917788cd025d6452f0","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.0","_npmUser":{"name":"fagner","email":"github@fagnermartins.com"},"maintainers":[{"name":"fagner","email":"gravatar@fagnermartins.com"},{"name":"carhartl","email":"klaus.hartl@gmail.com"}],"dist":{"shasum":"479c20d0a0bb6cab81491f917788cd025d6452f0","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-2.1.0.tgz","integrity":"sha512-rJNSgFedXAA3vj/nYkIusRwKFCivI3G7Ow9u6cQOil4m8BZgFY2MH3pb1Rnt59OE2PzN2QOFU7YoPscGHwJhkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICAYK879o9G8L4eesL8Lx+Ktuq5wnSDzcSJHQWdIFz4RAiEAuUgWcK82/xBC3NFNvsMN/4uSJ6+djWZ4QiYjBT+dtKY="}]}},"2.1.1":{"name":"js-cookie","version":"2.1.1","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["jquery-plugin","cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"1.0.0","grunt-compare-size":"0.4.0","grunt-contrib-connect":"1.0.0","grunt-contrib-jshint":"1.0.0","grunt-contrib-nodeunit":"0.4.1","grunt-contrib-qunit":"1.1.0","grunt-contrib-uglify":"1.0.1","grunt-contrib-watch":"1.0.0","grunt-jscs":"2.8.0","grunt-saucelabs":"8.6.2","gzip-js":"0.3.2","qunitjs":"1.23.0","requirejs":"2.2.0"},"gitHead":"ea3c0b56fce4a8f806d00463fcd086013f415069","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@2.1.1","_shasum":"26ada7902e91fe7f8bb01b4831912c724739f381","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"fagner","email":"gravatar@fagnermartins.com"},"dist":{"shasum":"26ada7902e91fe7f8bb01b4831912c724739f381","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-2.1.1.tgz","integrity":"sha512-BYjLHmXr/YFnH1x+wmK5qSSsag7bKRF7JDp6BRBsSjIXOnZoI6Y+JrmlCqN99/9MQq/Dim/cc949wwkEJCuPnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHrM1WfwPgJIk+1O5JjXais74YUkH/iS+8RCy6gBJpEwIgfd6DA4MdkkzpwFJ1BxaGFwxYLOd9L8QH9oPU4q+gl2g="}]},"maintainers":[{"name":"fagner","email":"gravatar@fagnermartins.com"},{"name":"carhartl","email":"klaus.hartl@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/js-cookie-2.1.1.tgz_1460799100941_0.7264001339208335"}},"2.1.2":{"name":"js-cookie","version":"2.1.2","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["jquery-plugin","cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"1.0.0","grunt-compare-size":"0.4.2","grunt-contrib-connect":"1.0.2","grunt-contrib-jshint":"1.0.0","grunt-contrib-nodeunit":"1.0.0","grunt-contrib-qunit":"1.2.0","grunt-contrib-uglify":"1.0.1","grunt-contrib-watch":"1.0.0","grunt-jscs":"2.8.0","grunt-saucelabs":"8.6.2","gzip-js":"0.3.2","qunitjs":"1.23.1","requirejs":"2.2.0"},"gitHead":"d430a7351127fc3ea0e231103a2badbeedda0e55","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@2.1.2","_shasum":"88d6d3bc9699a54ac8d0bd7940b0919ac8ab49ac","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"fagner","email":"gravatar@fagnermartins.com"},"dist":{"shasum":"88d6d3bc9699a54ac8d0bd7940b0919ac8ab49ac","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-2.1.2.tgz","integrity":"sha512-EUt9nCyad2c9YLeAsXYeWZzsOf84DchFO2uIJ6NNwWisF2PEAcyStJEHhy6jOcHErq6EV3pLiyv34T06VwXqcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDFG2dnViNXMywI//wuPH/qwQfw1W//dDABguumnzVYgAiEApzCzMOmF/QuvoG8arehapBU9kenzRyQ//7+GNKiYPNY="}]},"maintainers":[{"name":"fagner","email":"gravatar@fagnermartins.com"},{"name":"carhartl","email":"klaus.hartl@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/js-cookie-2.1.2.tgz_1464502137085_0.24360701371915638"}},"2.1.3":{"name":"js-cookie","version":"2.1.3","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["jquery-plugin","cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"1.0.0","grunt-compare-size":"0.4.2","grunt-contrib-connect":"1.0.2","grunt-contrib-jshint":"1.0.0","grunt-contrib-nodeunit":"1.0.0","grunt-contrib-qunit":"1.2.0","grunt-contrib-uglify":"2.0.0","grunt-contrib-watch":"1.0.0","grunt-jscs":"3.0.1","grunt-saucelabs":"9.0.0","gzip-js":"0.3.2","qunitjs":"1.23.1","requirejs":"2.2.0"},"gitHead":"68acf18560eb7a5d21db7197ae24d975971d1ae0","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@2.1.3","_shasum":"48071625217ac9ecfab8c343a13d42ec09ff0526","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"fagner","email":"gravatar@fagnermartins.com"},"dist":{"shasum":"48071625217ac9ecfab8c343a13d42ec09ff0526","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-2.1.3.tgz","integrity":"sha512-ePyltmNZWEFQKMjhuBNXkGX34RYB/pbO3DGXxtpuYGdByf7RgFcBcwYlyBwJyduf9/lo17Pi0USmjILiLOfA6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEZ/XQHAMCHg3nzpt1WsHoMDDq9vV0yXNQ504rRYivTlAiEA61wgponAN8fM8l2fD4FY6idjiAG/C1URH66HzwCoOGc="}]},"maintainers":[{"name":"fagner","email":"gravatar@fagnermartins.com"},{"name":"carhartl","email":"klaus.hartl@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/js-cookie-2.1.3.tgz_1472791339652_0.2998941692057997"}},"2.1.4":{"name":"js-cookie","version":"2.1.4","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["jquery-plugin","cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"1.0.0","grunt-compare-size":"0.4.2","grunt-contrib-connect":"1.0.2","grunt-contrib-jshint":"1.1.0","grunt-contrib-nodeunit":"1.0.0","grunt-contrib-qunit":"1.3.0","grunt-contrib-uglify":"2.2.1","grunt-contrib-watch":"1.0.0","grunt-jscs":"3.0.1","grunt-saucelabs":"9.0.0","gzip-js":"0.3.2","qunitjs":"1.23.1","requirejs":"2.3.3"},"gitHead":"8b70250875f7e07445b6a457f9c2474ead4cba44","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@2.1.4","_shasum":"da4ec503866f149d164cf25f579ef31015025d8d","_from":".","_npmVersion":"3.7.2","_nodeVersion":"4.3.1","_npmUser":{"name":"fagner","email":"gravatar@fagnermartins.com"},"dist":{"shasum":"da4ec503866f149d164cf25f579ef31015025d8d","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-2.1.4.tgz","integrity":"sha512-ACJgj9MPgn/ac4b55OZFbPY/u57HTSkOD65ScYN1sh/js0pQP7WQh7/kFt6/NxBOHKlwVsxZWliVo7CkxF0Cjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICX1cjV8BvwiX+pHhyJUYaWgXiaGNvfy3w9eInKy7G9eAiAPWS6wrIOTMHnplFuVXaeWO98iZJd586066BwfrRjk7A=="}]},"maintainers":[{"name":"fagner","email":"gravatar@fagnermartins.com"},{"name":"carhartl","email":"klaus.hartl@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/js-cookie-2.1.4.tgz_1491219512452_0.026936121517792344"}},"2.2.0":{"name":"js-cookie","version":"2.2.0","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["jquery-plugin","cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"files":["src/**/*.js","SERVER_SIDE.md","CONTRIBUTING.md"],"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"1.0.1","grunt-compare-size":"0.4.2","grunt-contrib-connect":"1.0.2","grunt-contrib-jshint":"1.1.0","grunt-contrib-nodeunit":"1.0.0","grunt-contrib-qunit":"2.0.0","grunt-contrib-uglify":"2.3.0","grunt-contrib-watch":"1.0.0","grunt-jscs":"3.0.1","grunt-saucelabs":"9.0.0","gzip-js":"0.3.2","qunitjs":"1.23.1","requirejs":"2.3.5"},"gitHead":"a0012f21ba0519fa3c7571cc6f16e15902ec051b","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@2.2.0","_shasum":"1b2c279a6eece380a12168b92485265b35b1effb","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.3","_npmUser":{"name":"fagner","email":"gravatar@fagnermartins.com"},"dist":{"shasum":"1b2c279a6eece380a12168b92485265b35b1effb","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-2.2.0.tgz","integrity":"sha512-7YAJP/LPE/MhDjHIdfIiT665HUSumCwPN2hAmO6OJZ8V3o1mtz2HeQ8BKetEjkh+3nqGxYaq1vPMViUR8kaOXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDr0LL+P8GrIBlUL8kC6GKhd6TehbnEinKwiRv1betYjAIhAP7WdrJ0AlElnYXgRUGLpJ+EosvZdUDTbLOBWwmbdWGK"}]},"maintainers":[{"name":"fagner","email":"gravatar@fagnermartins.com"},{"name":"carhartl","email":"klaus.hartl@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie-2.2.0.tgz_1509170688785_0.4103683396242559"}},"2.2.1":{"name":"js-cookie","version":"2.2.1","description":"A simple, lightweight JavaScript API for handling cookies","main":"src/js.cookie.js","directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"grunt":"1.0.3","grunt-compare-size":"0.4.2","grunt-contrib-connect":"2.0.0","grunt-contrib-nodeunit":"2.0.0","grunt-contrib-qunit":"2.0.0","grunt-contrib-uglify":"2.3.0","grunt-contrib-watch":"1.1.0","grunt-eslint":"21.0.0","grunt-saucelabs":"9.0.0","gzip-js":"0.3.2","qunitjs":"1.23.1","requirejs":"2.3.5"},"gitHead":"54962f884e9ae33f93e13ac903ffaf1d5a523598","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@2.2.1","_nodeVersion":"12.7.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ==","shasum":"69e106dc5d5806894562902aa5baec3744e9b2b8","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-2.2.1.tgz","fileCount":6,"unpackedSize":27614,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSYVZCRA9TVsSAnZWagAA9ZIP/0m1OCfDz9+PrZURpUnX\nx8bpfdVE83Ihhxx/tkTY2NjVS1F6ytmO4oiruosSKJRvn/6QA5yVjTiXbtNX\nHHnwX77e6miglxHN/NptlxEsRs/mUcvsbN7MRgoK+3aonL+rjMcg3Pklqy9C\nlH3QbkokHiKmxt7aRqoQksGcetOFZJzcv73Nk49NgpD4D3QACH9g3ghhvpc2\nXsnsUHSsbZ5K+pqjKzvTKxHI8vDHZCvU+3i7mW3DgKl46ZxTZOtFPqngfZMI\nDAxWKGacIFkFuJIf9lXNCMKT6PaRGdLB77QiEKLeHT9axdXtgmhSefQ+QcQN\nnuhNp4doLXXvpLhnpR2eXgeA7ZLMA5wiv6HRFfIHaddazgE6WiK7wVA+dJrL\n2pouCVPRZuMC9D2RWdVtC82gnhxapp09//rx4phD8+lJMRNp1XuHArX0KtN/\nQmUZ7Wn+CuTvN3SfAMeloI5OKj50R5JychgfRSlRq58+WalnFweHLO0W/BfW\nSbsLa0ED34mQIQhhNPlGbzDC8F8L1xuQRpxjqhs+hNSDWHR7rL1w3Gm+2qnj\nKwzyzuxHv58x3jJTTAvvL6kNtvrEO0hWwP7tep6KmKf8LFJkmIo/8X3dG9P2\nV2YWT8KuyfqUQyisFjwOjz1iD6H/IsUCqSBAwnQgdU7lLEJyA0zwvqT/cz4Y\n+dxk\r\n=qkjU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKth68uluGeXxomX/3QSdG9R516ODn40vDfv+aRFjeWAiEA4iaeirBNZQ7Or3FrISAdkLHs401z7fYw0QEYyxrGwlM="}]},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"gravatar@fagnermartins.com"}],"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_2.2.1_1565099352850_0.2088216105757652"},"_hasShrinkwrap":false},"3.0.0-beta.0":{"name":"js-cookie","version":"3.0.0-beta.0","description":"A simple, lightweight JavaScript API for handling cookies","browser":"dist/js.cookie.js","module":"dist/js.cookie.mjs","directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"browserstack-runner":"0.9.0","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-html":"^6.0.0","eslint-plugin-markdown":"^1.0.0","grunt":"1.0.4","grunt-compare-size":"0.4.2","grunt-contrib-connect":"2.1.0","grunt-contrib-nodeunit":"2.0.0","grunt-contrib-qunit":"3.1.0","grunt-contrib-watch":"1.1.0","grunt-exec":"3.0.0","gzip-js":"0.3.2","prettier":"1.18.2","qunit":"2.9.2","release-it":"^12.3.6","rollup":"^1.20.3","rollup-plugin-filesize":"^6.2.0","rollup-plugin-license":"^0.12.1","rollup-plugin-terser":"^5.1.1","standard":"^14.1.0"},"readme":"<p align=\"center\">\n <img src=\"https://cloud.githubusercontent.com/assets/835857/14581711/ba623018-0436-11e6-8fce-d2ccd4d379c9.gif\">\n</p>\n\n# JavaScript Cookie [![Build Status](https://travis-ci.org/js-cookie/js-cookie.svg?branch=master)](https://travis-ci.org/js-cookie/js-cookie) [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2)](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Code Climate](https://codeclimate.com/github/js-cookie/js-cookie.svg)](https://codeclimate.com/github/js-cookie/js-cookie) [![npm](https://img.shields.io/npm/v/js-cookie)](https://www.npmjs.com/package/js-cookie) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/js-cookie/badge?style=rounded)](https://www.jsdelivr.com/package/npm/js-cookie)\n\nA simple, lightweight JavaScript API for handling cookies\n\n- Works in [all](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) browsers\n- Accepts [any](#encoding) character\n- [Heavily](test) tested\n- No dependency\n- Supports ES modules\n- Supports AMD/CommonJS\n- [RFC 6265](https://tools.ietf.org/html/rfc6265) compliant\n- Useful [Wiki](https://github.com/js-cookie/js-cookie/wiki)\n- Enable [custom encoding/decoding](#converters)\n- **~900 bytes** gzipped!\n\n**If you're viewing this at https://github.com/js-cookie/js-cookie, you're reading the documentation for the master branch.\n[View documentation for the latest release.](https://github.com/js-cookie/js-cookie/tree/latest#readme)**\n\n## Installation\n\n### NPM\n\nJavaScript Cookie supports [npm](https://www.npmjs.com/package/js-cookie) under the name `js-cookie`.\n\n```\n$ npm install js-cookie --save\n```\n\nThe npm package has a `module` property that is pointing to an ES module, to provide support for ES module aware bundlers.\n\n### Direct download\n\nStarting with version 3 [releases](https://github.com/js-cookie/js-cookie/releases) are distributed with two variants of this library, an ES module as well as an UMD module.\n\nNote the different extensions: `.mjs` denotes the ES module, whereas `.js` is the UMD one.\n\nExample for how to load the ES module in a browser:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script type=\"module\">\n import Cookies from '/path/to/js.cookie.mjs'\n\n Cookies.set('foo', 'bar')\n</script>\n```\n\n_Not all browsers support ES modules natively yet_. For this reason the npm package/release provides both the ES and UMD module variant and you may want to include the ES module along with the UMD fallback to account for this:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script nomodule defer src=\"/path/to/js.cookie.js\"></script>\n```\n\nHere we're loading the nomodule script in a deferred fashion, because ES modules are deferred by default. This may not be strictly necessary depending on how you're using the library.\n\n### CDN\n\nAlternatively, include it via [jsDelivr CDN](https://www.jsdelivr.com/package/npm/js-cookie):\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js\"></script>\n```\n\n**Never include the source directly from GitHub (http://raw.github.com/...).** The file\nis being served as text/plain and as such may be blocked because of the wrong MIME type.\nBottom line: GitHub is not a CDN.\n\n## ES Module\n\nExample for how to import the ES module from another module:\n\n```javascript\nimport Cookies from 'js-cookie'\n\nCookies.set('foo', 'bar')\n```\n\n## Basic Usage\n\nCreate a cookie, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value')\n```\n\nCreate a cookie that expires 7 days from now, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value', { expires: 7 })\n```\n\nCreate an expiring cookie, valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { expires: 7, path: '' })\n```\n\nRead cookie:\n\n```javascript\nCookies.get('name') // => 'value'\nCookies.get('nothing') // => undefined\n```\n\nRead all visible cookies:\n\n```javascript\nCookies.get() // => { name: 'value' }\n```\n\n_Note: It is not possible to read a particular cookie by passing one of the cookie attributes (which may or may not\nhave been used when writing the cookie in question):_\n\n```javascript\nCookies.get('foo', { domain: 'sub.example.com' }) // `domain` won't have any effect...!\n```\n\nThe cookie with the name `foo` will only be available on `.get()` if it's visible from where the\ncode is called; the domain and/or path attribute will not have an effect when reading.\n\nDelete cookie:\n\n```javascript\nCookies.remove('name')\n```\n\nDelete a cookie valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.remove('name') // fail!\nCookies.remove('name', { path: '' }) // removed!\n```\n\n_IMPORTANT! When deleting a cookie and you're not relying on the [default attributes](#cookie-attributes), you must pass the exact same path and domain attributes that were used to set the cookie:_\n\n```javascript\nCookies.remove('name', { path: '', domain: '.yourdomain.com' })\n```\n\n_Note: Removing a nonexistent cookie does not raise any exception nor return any value._\n\n## Namespace conflicts\n\nIf there is any danger of a conflict with the namespace `Cookies`, the `noConflict` method will allow you to define a new namespace and preserve the original one. This is especially useful when running the script on third party sites e.g. as part of a widget or SDK.\n\n```javascript\n// Assign the js-cookie api to a different variable and restore the original \"window.Cookies\"\nvar Cookies2 = Cookies.noConflict()\nCookies2.set('name', 'value')\n```\n\n_Note: The `.noConflict` method is not necessary when using AMD or CommonJS, thus it is not exposed in those environments._\n\n## Encoding\n\nThis project is [RFC 6265](http://tools.ietf.org/html/rfc6265#section-4.1.1) compliant. All special characters that are not allowed in the cookie-name or cookie-value are encoded with each one's UTF-8 Hex equivalent using [percent-encoding](http://en.wikipedia.org/wiki/Percent-encoding). \nThe only character in cookie-name or cookie-value that is allowed and still encoded is the percent `%` character, it is escaped in order to interpret percent input as literal. \nPlease note that the default encoding/decoding strategy is meant to be interoperable [only between cookies that are read/written by js-cookie](https://github.com/js-cookie/js-cookie/pull/200#discussion_r63270778). To override the default encoding/decoding strategy you need to use a [converter](#converters).\n\n_Note: According to [RFC 6265](https://tools.ietf.org/html/rfc6265#section-6.1), your cookies may get deleted if they are too big or there are too many cookies in the same domain, [more details here](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#why-are-my-cookies-being-deleted)._\n\n## Cookie Attributes\n\nCookie attributes defaults can be set globally by setting properties of the `Cookies.defaults` object or individually for each call to `Cookies.set(...)` by passing a plain object in the last argument. Per-call attributes override the default attributes.\n\n### expires\n\nDefine when the cookie will be removed. Value can be a [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) which will be interpreted as days from time of creation or a [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. If omitted, the cookie becomes a session cookie.\n\nTo create a cookie that expires in less than a day, you can check the [FAQ on the Wiki](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#expire-cookies-in-less-than-a-day).\n\n**Default:** Cookie is removed when the user closes the browser.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { expires: 365 })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### path\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating the path where the cookie is visible.\n\n**Default:** `/`\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.get('name') // => 'value'\nCookies.remove('name', { path: '' })\n```\n\n**Note regarding Internet Explorer:**\n\n> Due to an obscure bug in the underlying WinINET InternetGetCookie implementation, IEs document.cookie will not return a cookie if it was set with a path attribute containing a filename.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means one cannot set a path using `window.location.pathname` in case such pathname contains a filename like so: `/check.html` (or at least, such cookie cannot be read correctly).\n\nIn fact, you should never allow untrusted input to set the cookie attributes or you might be exposed to a [XSS attack](https://github.com/js-cookie/js-cookie/issues/396).\n\n### domain\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating a valid domain where the cookie should be visible. The cookie will also be visible to all subdomains.\n\n**Default:** Cookie is visible only to the domain or subdomain of the page where the cookie was created, except for Internet Explorer (see below).\n\n**Examples:**\n\nAssuming a cookie that is being created on `site.com`:\n\n```javascript\nCookies.set('name', 'value', { domain: 'subdomain.site.com' })\nCookies.get('name') // => undefined (need to read at 'subdomain.site.com')\n```\n\n**Note regarding Internet Explorer default behavior:**\n\n> Q3: If I dont specify a DOMAIN attribute (for) a cookie, IE sends it to all nested subdomains anyway? \n> A: Yes, a cookie set on example.com will be sent to sub2.sub1.example.com. \n> Internet Explorer differs from other browsers in this regard.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means that if you omit the `domain` attribute, it will be visible for a subdomain in IE.\n\n### secure\n\nEither `true` or `false`, indicating if the cookie transmission requires a secure protocol (https).\n\n**Default:** No secure protocol requirement.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { secure: true })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n## Converters\n\n### Read\n\nCreate a new instance of the api that overrides the default decoding implementation. \nAll get methods that rely in a proper decoding to work, such as `Cookies.get()` and `Cookies.get('name')`, will run the converter first for each cookie. \nThe returning String will be used as the cookie value.\n\nExample from reading one of the cookies that can only be decoded using the `escape` function:\n\n```javascript\ndocument.cookie = 'escaped=%u5317'\ndocument.cookie = 'default=%E5%8C%97'\nvar cookies = Cookies.withConverter(function (value, name) {\n if (name === 'escaped') {\n return unescape(value)\n }\n})\ncookies.get('escaped') // 北\ncookies.get('default') // 北\ncookies.get() // { escaped: '北', default: '北' }\n```\n\n### Write\n\nCreate a new instance of the api that overrides the default encoding implementation:\n\n```javascript\nCookies.withConverter({\n read: function (value, name) {\n // Read converter\n },\n write: function (value, name) {\n // Write converter\n }\n})\n```\n\n## Server-side integration\n\nCheck out the [Servers Docs](SERVER_SIDE.md)\n\n## Contributing\n\nCheck out the [Contributing Guidelines](CONTRIBUTING.md)\n\n## Security\n\nFor vulnerability reports, send an e-mail to `jscookieproject at gmail dot com`\n\n## Releasing\n\nWe are using [release-it](https://www.npmjs.com/package/release-it) for automated releasing.\n\nStart a dry run to see what would happen:\n\n```\n$ npm run release minor -- --dry-run\n```\n\nDo a real release (publishes both to npm as well as create a new release on GitHub):\n\n```\n$ npm run release minor\n```\n\n_GitHub releases are created as a draft and need to be published manually!\n(This is so we are able to craft suitable release notes before publishing.)_\n\n## Supporters\n\n<p>\n <a href=\"https://www.browserstack.com/\"><img src=\"https://raw.githubusercontent.com/wiki/js-cookie/js-cookie/Browserstack-logo%402x.png\" width=\"150\"></a>\n</p>\n\nMany thanks to [BrowserStack](https://www.browserstack.com/) for providing unlimited browser testing free of cost.\n\n## Authors\n\n- [Klaus Hartl](https://github.com/carhartl)\n- [Fagner Brack](https://github.com/FagnerMartinsBrack)\n- And awesome [contributors](https://github.com/js-cookie/js-cookie/graphs/contributors)\n","readmeFilename":"README.md","gitHead":"c85ee95eded7648d4e85d95ec5f1898439fe87b1","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.0-beta.0","_nodeVersion":"8.16.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-0pdaQ3fS9kkABzc8RQchzBPR9iMyHZUWekWM+0X25Q79JM1e7WgzWjVzyBWDpTw1fhAwW+vucBKArN7KkrKoCA==","shasum":"e53e88e812833e766c9d91ac0509efcf9ab67558","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.0-beta.0.tgz","fileCount":7,"unpackedSize":25034,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdmI9pCRA9TVsSAnZWagAAUhMP/AhKYOKP1M5PrvCjNVbY\nmFmfAhj2qZqiflICz+wFPsmBET8PTHU7We1h77zGz8mqPnqe1s0Bj/aL5v4S\nzmGJfBMKlbjNKOe8kLDDmvk1OKwCgiODVk64Jvbgj1y8VPQ2zfJTRQj6PEbT\nOt8uLU/DRixLguvG4My5xDLD9tdT35i1YQbtyXlVIYpJ8WCDJtmMUUMb73YV\n4/ew+OQhC1rpufasnrOPdyGhohAPe6PXTeZxzZK6qDnMLoICXpYHFpU6BLMO\n27mwUaxfOEBo10HsqqVrUOZkNz3HbRU6fMzn+bihFIO6KD2UfOcbpUWJbcUc\nSFs98fAaNWhD6t//VhRULEBm/LOW/6xKPPY2k8IR78dLL/5aPZF/YT74OR6V\ncPHGK41R3bClM16qOrMTtrdl+2uFCeHAONUdyhEBALzKv3pf2JmeMd6F/bWS\nE9O8JYeuSotnHAeZTz7Kjqej8IMUrhlpj2Odo8eo6BLwaFFqEBVLyl+ato2G\n5PmL0raLTm9ma6hh7k6pMBy4qQVV5dj1BztbhZcEa5cI/61zkjROMEZMB+qA\n8RhIWTWfDx+DJPLExcRK+QYC822vGo/HZgeIBM/C/Jnp4mNEAqMBmUVkxyUV\nA0Q6vfekjYyjACAIaIscdkudkM3xMZr8SpFsDGL+P1ob4tUEUHucTgeA5xFB\nbwOF\r\n=c/9X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdJucJqvDuZULBtddXakguCLBJDCfb2FB688Aj/T00XwIgN6Mi75PP0Acy5q26C7vrL1l/MDEEp/Ehzq8ayLN0ncc="}]},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"gravatar@fagnermartins.com"}],"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.0-beta.0_1570279272536_0.7486445819775649"},"_hasShrinkwrap":false},"3.0.0-beta.1":{"name":"js-cookie","version":"3.0.0-beta.1","description":"A simple, lightweight JavaScript API for handling cookies","browser":"dist/js.cookie.js","module":"dist/js.cookie.mjs","directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"browserstack-runner":"^0.9.0","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-html":"^6.0.0","eslint-plugin-markdown":"^1.0.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^2.1.0","grunt-contrib-nodeunit":"^2.0.0","grunt-contrib-qunit":"^3.1.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^1.18.2","qunit":"^2.9.3","release-it":"^12.3.6","rollup":"^1.20.3","rollup-plugin-filesize":"^6.2.0","rollup-plugin-license":"^0.13.0","rollup-plugin-terser":"^5.1.1","standard":"^14.1.0"},"readme":"<p align=\"center\">\n <img src=\"https://cloud.githubusercontent.com/assets/835857/14581711/ba623018-0436-11e6-8fce-d2ccd4d379c9.gif\">\n</p>\n\n# JavaScript Cookie [![Build Status](https://travis-ci.org/js-cookie/js-cookie.svg?branch=master)](https://travis-ci.org/js-cookie/js-cookie) [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2)](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Code Climate](https://codeclimate.com/github/js-cookie/js-cookie.svg)](https://codeclimate.com/github/js-cookie/js-cookie) [![npm](https://img.shields.io/github/package-json/v/js-cookie/js-cookie)](https://www.npmjs.com/package/js-cookie) [![size](https://img.shields.io/bundlephobia/minzip/js-cookie/beta)](https://www.npmjs.com/package/js-cookie) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/js-cookie/badge?style=rounded)](https://www.jsdelivr.com/package/npm/js-cookie)\n\nA simple, lightweight JavaScript API for handling cookies\n\n- Works in [all](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) browsers\n- Accepts [any](#encoding) character\n- [Heavily](test) tested\n- No dependency\n- Supports ES modules\n- Supports AMD/CommonJS\n- [RFC 6265](https://tools.ietf.org/html/rfc6265) compliant\n- Useful [Wiki](https://github.com/js-cookie/js-cookie/wiki)\n- Enable [custom encoding/decoding](#converters)\n- **< 800 bytes** gzipped!\n\n**If you're viewing this at https://github.com/js-cookie/js-cookie, you're reading the documentation for the master branch.\n[View documentation for the latest release.](https://github.com/js-cookie/js-cookie/tree/latest#readme)**\n\n## Installation\n\n### NPM\n\nJavaScript Cookie supports [npm](https://www.npmjs.com/package/js-cookie) under the name `js-cookie`.\n\n```\n$ npm i js-cookie\n```\n\nThe npm package has a `module` field pointing to an ES module variant of the library, mainly to provide support for ES module aware bundlers, whereas its `browser` field points to an UMD module for full backward compatibility.\n\n### Direct download\n\nStarting with version 3 [releases](https://github.com/js-cookie/js-cookie/releases) are distributed with two variants of this library, an ES module as well as an UMD module.\n\nNote the different extensions: `.mjs` denotes the ES module, whereas `.js` is the UMD one.\n\nExample for how to load the ES module in a browser:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script type=\"module\">\n import Cookies from '/path/to/js.cookie.mjs'\n\n Cookies.set('foo', 'bar')\n</script>\n```\n\n_Not all browsers support ES modules natively yet_. For this reason the npm package/release provides both the ES and UMD module variant and you may want to include the ES module along with the UMD fallback to account for this:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script nomodule defer src=\"/path/to/js.cookie.js\"></script>\n```\n\nHere we're loading the nomodule script in a deferred fashion, because ES modules are deferred by default. This may not be strictly necessary depending on how you're using the library.\n\n### CDN\n\nAlternatively, include it via [jsDelivr CDN](https://www.jsdelivr.com/package/npm/js-cookie):\n\nUMD:\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.js\"></script>\n```\n\nES module:\n\n```html\n<script\n type=\"module\"\n src=\"https://cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.mjs\"\n></script>\n```\n\n**Never include the source directly from GitHub (http://raw.github.com/...).** The file\nis being served as text/plain and as such may be blocked because of the wrong MIME type.\nBottom line: GitHub is not a CDN.\n\n## ES Module\n\nExample for how to import the ES module from another module:\n\n```javascript\nimport Cookies from 'js-cookie'\n\nCookies.set('foo', 'bar')\n```\n\n## Basic Usage\n\nCreate a cookie, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value')\n```\n\nCreate a cookie that expires 7 days from now, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value', { expires: 7 })\n```\n\nCreate an expiring cookie, valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { expires: 7, path: '' })\n```\n\nRead cookie:\n\n```javascript\nCookies.get('name') // => 'value'\nCookies.get('nothing') // => undefined\n```\n\nRead all visible cookies:\n\n```javascript\nCookies.get() // => { name: 'value' }\n```\n\n_Note: It is not possible to read a particular cookie by passing one of the cookie attributes (which may or may not\nhave been used when writing the cookie in question):_\n\n```javascript\nCookies.get('foo', { domain: 'sub.example.com' }) // `domain` won't have any effect...!\n```\n\nThe cookie with the name `foo` will only be available on `.get()` if it's visible from where the\ncode is called; the domain and/or path attribute will not have an effect when reading.\n\nDelete cookie:\n\n```javascript\nCookies.remove('name')\n```\n\nDelete a cookie valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.remove('name') // fail!\nCookies.remove('name', { path: '' }) // removed!\n```\n\n_IMPORTANT! When deleting a cookie and you're not relying on the [default attributes](#cookie-attributes), you must pass the exact same path and domain attributes that were used to set the cookie:_\n\n```javascript\nCookies.remove('name', { path: '', domain: '.yourdomain.com' })\n```\n\n_Note: Removing a nonexistent cookie neither raises any exception nor returns any value._\n\n## Namespace conflicts\n\nIf there is any danger of a conflict with the namespace `Cookies`, the `noConflict` method will allow you to define a new namespace and preserve the original one. This is especially useful when running the script on third party sites e.g. as part of a widget or SDK.\n\n```javascript\n// Assign the js-cookie api to a different variable and restore the original \"window.Cookies\"\nvar Cookies2 = Cookies.noConflict()\nCookies2.set('name', 'value')\n```\n\n_Note: The `.noConflict` method is not necessary when using AMD or CommonJS, thus it is not exposed in those environments._\n\n## Encoding\n\nThis project is [RFC 6265](http://tools.ietf.org/html/rfc6265#section-4.1.1) compliant. All special characters that are not allowed in the cookie-name or cookie-value are encoded with each one's UTF-8 Hex equivalent using [percent-encoding](http://en.wikipedia.org/wiki/Percent-encoding). \nThe only character in cookie-name or cookie-value that is allowed and still encoded is the percent `%` character, it is escaped in order to interpret percent input as literal. \nPlease note that the default encoding/decoding strategy is meant to be interoperable [only between cookies that are read/written by js-cookie](https://github.com/js-cookie/js-cookie/pull/200#discussion_r63270778). To override the default encoding/decoding strategy you need to use a [converter](#converters).\n\n_Note: According to [RFC 6265](https://tools.ietf.org/html/rfc6265#section-6.1), your cookies may get deleted if they are too big or there are too many cookies in the same domain, [more details here](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#why-are-my-cookies-being-deleted)._\n\n## Cookie Attributes\n\nCookie attribute defaults can be set globally by creating an instance of the api via `withAttributes()`, or individually for each call to `Cookies.set(...)` by passing a plain object as the last argument. Per-call attributes override the default attributes.\n\n### expires\n\nDefine when the cookie will be removed. Value can be a [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) which will be interpreted as days from time of creation or a [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. If omitted, the cookie becomes a session cookie.\n\nTo create a cookie that expires in less than a day, you can check the [FAQ on the Wiki](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#expire-cookies-in-less-than-a-day).\n\n**Default:** Cookie is removed when the user closes the browser.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { expires: 365 })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### path\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating the path where the cookie is visible.\n\n**Default:** `/`\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.get('name') // => 'value'\nCookies.remove('name', { path: '' })\n```\n\n**Note regarding Internet Explorer:**\n\n> Due to an obscure bug in the underlying WinINET InternetGetCookie implementation, IEs document.cookie will not return a cookie if it was set with a path attribute containing a filename.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means one cannot set a path using `window.location.pathname` in case such pathname contains a filename like so: `/check.html` (or at least, such cookie cannot be read correctly).\n\nIn fact, you should never allow untrusted input to set the cookie attributes or you might be exposed to a [XSS attack](https://github.com/js-cookie/js-cookie/issues/396).\n\n### domain\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating a valid domain where the cookie should be visible. The cookie will also be visible to all subdomains.\n\n**Default:** Cookie is visible only to the domain or subdomain of the page where the cookie was created, except for Internet Explorer (see below).\n\n**Examples:**\n\nAssuming a cookie that is being created on `site.com`:\n\n```javascript\nCookies.set('name', 'value', { domain: 'subdomain.site.com' })\nCookies.get('name') // => undefined (need to read at 'subdomain.site.com')\n```\n\n**Note regarding Internet Explorer default behavior:**\n\n> Q3: If I dont specify a DOMAIN attribute (for) a cookie, IE sends it to all nested subdomains anyway? \n> A: Yes, a cookie set on example.com will be sent to sub2.sub1.example.com. \n> Internet Explorer differs from other browsers in this regard.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means that if you omit the `domain` attribute, it will be visible for a subdomain in IE.\n\n### secure\n\nEither `true` or `false`, indicating if the cookie transmission requires a secure protocol (https).\n\n**Default:** No secure protocol requirement.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { secure: true })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### sameSite\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String), with possible values `lax` or `strict`, prevents the browser from sending cookie along with cross-site requests.\n\nDefault: not set, i.e. include cookie in any request.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { sameSite: 'lax' })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### Setting up defaults\n\n```javascript\nconst api = Cookies.withAttributes({ path: '/', domain: '.example.com' })\n```\n\n## Converters\n\n### Read\n\nCreate a new instance of the api that overrides the default decoding implementation. All get methods that rely in a proper decoding to work, such as `Cookies.get()` and `Cookies.get('name')`, will run the given converter for each cookie. The returned value will be used as the cookie value.\n\nExample from reading one of the cookies that can only be decoded using the `escape` function:\n\n```javascript\ndocument.cookie = 'escaped=%u5317'\ndocument.cookie = 'default=%E5%8C%97'\nvar cookies = Cookies.withConverter({\n read: function (value, name) {\n if (name === 'escaped') {\n return unescape(value)\n }\n // Fall back to default for all other cookies\n return Cookies.converter.read(value, name)\n }\n})\ncookies.get('escaped') // 北\ncookies.get('default') // 北\ncookies.get() // { escaped: '北', default: '北' }\n```\n\n### Write\n\nCreate a new instance of the api that overrides the default encoding implementation:\n\n```javascript\nCookies.withConverter({\n write: function (value, name) {\n return value.toUpperCase()\n }\n})\n```\n\n## TypeScript declarations\n\n```\n$ npm i @types/js-cookie\n```\n\n## Server-side integration\n\nCheck out the [Servers Docs](SERVER_SIDE.md)\n\n## Contributing\n\nCheck out the [Contributing Guidelines](CONTRIBUTING.md)\n\n## Security\n\nFor vulnerability reports, send an e-mail to `jscookieproject at gmail dot com`\n\n## Releasing\n\nWe are using [release-it](https://www.npmjs.com/package/release-it) for automated releasing.\n\nStart a dry run to see what would happen:\n\n```\n$ npm run release minor -- --dry-run\n```\n\nDo a real release (publishes both to npm as well as create a new release on GitHub):\n\n```\n$ npm run release minor\n```\n\n_GitHub releases are created as a draft and need to be published manually!\n(This is so we are able to craft suitable release notes before publishing.)_\n\n## Supporters\n\n<p>\n <a href=\"https://www.browserstack.com/\"><img src=\"https://raw.githubusercontent.com/wiki/js-cookie/js-cookie/Browserstack-logo%402x.png\" width=\"150\"></a>\n</p>\n\nMany thanks to [BrowserStack](https://www.browserstack.com/) for providing unlimited browser testing free of cost.\n\n## Authors\n\n- [Klaus Hartl](https://github.com/carhartl)\n- [Fagner Brack](https://github.com/FagnerMartinsBrack)\n- And awesome [contributors](https://github.com/js-cookie/js-cookie/graphs/contributors)\n","readmeFilename":"README.md","gitHead":"f1d58ca9bb6c6321e270740922e8f9b9325d1fb3","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.0-beta.1","_npmVersion":"6.4.1","_nodeVersion":"8.16.0","_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"dist":{"integrity":"sha512-RU/UtFqmRLVOhE/NyMz8hiRSz97XWqaOqJJ2ag3Qxvs7T47wP0AETJpTaLw9ULhKFcyN1hBssLTv0DgWODzlXg==","shasum":"3642bc0759f8095a2f816f76788dd7440614d16b","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.0-beta.1.tgz","fileCount":7,"unpackedSize":27130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8MlgCRA9TVsSAnZWagAAwLwP/i/B32+iD5DqQAi2EgFe\nDQvRQ82VEpixHpkXcOpBujxaLvHm4RKitKRLReET1FzaXiI7f9T+fCmWUUbx\nv9TEnhGZ4S6Am7N9l5Q5JEMlBH7OcSYdewl/0o9fStcZW0a//uPwNxGUxt/B\nLgMvU9gvyCNmEwHkwuBBWHtpOumKJfMe2LsbS3ow+sJsLvH91PvDlpqTZmwl\n1PypZatRNsb7yaym2WE4xRRChDX7m2mXR7jWWeO3jwbR6W5/RLTbIcHJAE/i\nmoZFG1RPgfiYKLhwyexff/Axv620M5BegsVhp/5Dhs//Y++CXBHhq0sJ4O1L\n7KrwIK6Pow5HabwCilCRGeIAP6wPYL/IjaomCsOpVOJTrGSVCOkl31Ntnfr2\nZi559PswUzch+mfhUSIIMQe//J/uaVDHXSHhFuuRZuRbVvj+c4NKvElCRvNM\nsJ8/xLnZ6Z9XraRXZiC43pKzqnnc1bcXrKDrTRKLEIa+fd8Gtj9ewqyJj0ER\nqZB+XtgKByeQUCOLYR3qiC79YoLqNFxuU1WJrq6GskZDzLjM3p4d92jJO+4Z\nYiMdqETU+m2XGRuTOVbhWje7kxKOaN9nytFfUC2UcF4Vc6xXd2NGYCpM/EYf\nNwxIa+Co5Uu28y2gZu3VEzqDHCRjaMz/kWFkQKxNL4dfE28EWGUj0IAbQAZf\nJi8j\r\n=ohpc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDjMsy2GwqpUtyZqxuB1LuM4nPf6EXoLiacaVjUc9KjqAiEA2tjOqbjzPTsUt8odgGjUFaNYfbOKnK5WPEIl6xFA4Pg="}]},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"gravatar@fagnermartins.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.0-beta.1_1576061279709_0.6231503977862538"},"_hasShrinkwrap":false},"3.0.0-beta.2":{"name":"js-cookie","version":"3.0.0-beta.2","description":"A simple, lightweight JavaScript API for handling cookies","browser":"dist/js.cookie.js","module":"dist/js.cookie.mjs","directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"browserstack-runner":"^0.9.0","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-html":"^6.0.0","eslint-plugin-markdown":"^1.0.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^2.1.0","grunt-contrib-nodeunit":"^2.0.0","grunt-contrib-qunit":"^3.1.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^1.18.2","qunit":"^2.9.3","release-it":"^12.4.3","rollup":"^1.20.3","rollup-plugin-filesize":"^6.2.0","rollup-plugin-license":"^0.13.0","rollup-plugin-terser":"^5.1.3","standard":"^14.1.0"},"readme":"<p align=\"center\">\n <img src=\"https://cloud.githubusercontent.com/assets/835857/14581711/ba623018-0436-11e6-8fce-d2ccd4d379c9.gif\">\n</p>\n\n# JavaScript Cookie [![Build Status](https://travis-ci.org/js-cookie/js-cookie.svg?branch=master)](https://travis-ci.org/js-cookie/js-cookie) [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2)](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Code Climate](https://codeclimate.com/github/js-cookie/js-cookie.svg)](https://codeclimate.com/github/js-cookie/js-cookie) [![npm](https://img.shields.io/github/package-json/v/js-cookie/js-cookie)](https://www.npmjs.com/package/js-cookie) [![size](https://img.shields.io/bundlephobia/minzip/js-cookie/beta)](https://www.npmjs.com/package/js-cookie) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/js-cookie/badge?style=rounded)](https://www.jsdelivr.com/package/npm/js-cookie)\n\nA simple, lightweight JavaScript API for handling cookies\n\n- Works in [all](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) browsers\n- Accepts [any](#encoding) character\n- [Heavily](test) tested\n- No dependency\n- Supports ES modules\n- Supports AMD/CommonJS\n- [RFC 6265](https://tools.ietf.org/html/rfc6265) compliant\n- Useful [Wiki](https://github.com/js-cookie/js-cookie/wiki)\n- Enable [custom encoding/decoding](#converters)\n- **< 800 bytes** gzipped!\n\n**If you're viewing this at https://github.com/js-cookie/js-cookie, you're reading the documentation for the master branch.\n[View documentation for the latest release.](https://github.com/js-cookie/js-cookie/tree/latest#readme)**\n\n## Installation\n\n### NPM\n\nJavaScript Cookie supports [npm](https://www.npmjs.com/package/js-cookie) under the name `js-cookie`.\n\n```\n$ npm i js-cookie\n```\n\nThe npm package has a `module` field pointing to an ES module variant of the library, mainly to provide support for ES module aware bundlers, whereas its `browser` field points to an UMD module for full backward compatibility.\n\n### Direct download\n\nStarting with version 3 [releases](https://github.com/js-cookie/js-cookie/releases) are distributed with two variants of this library, an ES module as well as an UMD module.\n\nNote the different extensions: `.mjs` denotes the ES module, whereas `.js` is the UMD one.\n\nExample for how to load the ES module in a browser:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script type=\"module\">\n import Cookies from '/path/to/js.cookie.mjs'\n\n Cookies.set('foo', 'bar')\n</script>\n```\n\n_Not all browsers support ES modules natively yet_. For this reason the npm package/release provides both the ES and UMD module variant and you may want to include the ES module along with the UMD fallback to account for this:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script nomodule defer src=\"/path/to/js.cookie.js\"></script>\n```\n\nHere we're loading the nomodule script in a deferred fashion, because ES modules are deferred by default. This may not be strictly necessary depending on how you're using the library.\n\n### CDN\n\nAlternatively, include it via [jsDelivr CDN](https://www.jsdelivr.com/package/npm/js-cookie):\n\nUMD:\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.js\"></script>\n```\n\nES module:\n\n```html\n<script\n type=\"module\"\n src=\"https://cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.mjs\"\n></script>\n```\n\n**Never include the source directly from GitHub (http://raw.github.com/...).** The file\nis being served as text/plain and as such may be blocked because of the wrong MIME type.\nBottom line: GitHub is not a CDN.\n\n## ES Module\n\nExample for how to import the ES module from another module:\n\n```javascript\nimport Cookies from 'js-cookie'\n\nCookies.set('foo', 'bar')\n```\n\n## Basic Usage\n\nCreate a cookie, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value')\n```\n\nCreate a cookie that expires 7 days from now, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value', { expires: 7 })\n```\n\nCreate an expiring cookie, valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { expires: 7, path: '' })\n```\n\nRead cookie:\n\n```javascript\nCookies.get('name') // => 'value'\nCookies.get('nothing') // => undefined\n```\n\nRead all visible cookies:\n\n```javascript\nCookies.get() // => { name: 'value' }\n```\n\n_Note: It is not possible to read a particular cookie by passing one of the cookie attributes (which may or may not\nhave been used when writing the cookie in question):_\n\n```javascript\nCookies.get('foo', { domain: 'sub.example.com' }) // `domain` won't have any effect...!\n```\n\nThe cookie with the name `foo` will only be available on `.get()` if it's visible from where the\ncode is called; the domain and/or path attribute will not have an effect when reading.\n\nDelete cookie:\n\n```javascript\nCookies.remove('name')\n```\n\nDelete a cookie valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.remove('name') // fail!\nCookies.remove('name', { path: '' }) // removed!\n```\n\n_IMPORTANT! When deleting a cookie and you're not relying on the [default attributes](#cookie-attributes), you must pass the exact same path and domain attributes that were used to set the cookie:_\n\n```javascript\nCookies.remove('name', { path: '', domain: '.yourdomain.com' })\n```\n\n_Note: Removing a nonexistent cookie neither raises any exception nor returns any value._\n\n## Namespace conflicts\n\nIf there is any danger of a conflict with the namespace `Cookies`, the `noConflict` method will allow you to define a new namespace and preserve the original one. This is especially useful when running the script on third party sites e.g. as part of a widget or SDK.\n\n```javascript\n// Assign the js-cookie api to a different variable and restore the original \"window.Cookies\"\nvar Cookies2 = Cookies.noConflict()\nCookies2.set('name', 'value')\n```\n\n_Note: The `.noConflict` method is not necessary when using AMD or CommonJS, thus it is not exposed in those environments._\n\n## Encoding\n\nThis project is [RFC 6265](http://tools.ietf.org/html/rfc6265#section-4.1.1) compliant. All special characters that are not allowed in the cookie-name or cookie-value are encoded with each one's UTF-8 Hex equivalent using [percent-encoding](http://en.wikipedia.org/wiki/Percent-encoding). \nThe only character in cookie-name or cookie-value that is allowed and still encoded is the percent `%` character, it is escaped in order to interpret percent input as literal. \nPlease note that the default encoding/decoding strategy is meant to be interoperable [only between cookies that are read/written by js-cookie](https://github.com/js-cookie/js-cookie/pull/200#discussion_r63270778). To override the default encoding/decoding strategy you need to use a [converter](#converters).\n\n_Note: According to [RFC 6265](https://tools.ietf.org/html/rfc6265#section-6.1), your cookies may get deleted if they are too big or there are too many cookies in the same domain, [more details here](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#why-are-my-cookies-being-deleted)._\n\n## Cookie Attributes\n\nCookie attribute defaults can be set globally by creating an instance of the api via `withAttributes()`, or individually for each call to `Cookies.set(...)` by passing a plain object as the last argument. Per-call attributes override the default attributes.\n\n### expires\n\nDefine when the cookie will be removed. Value can be a [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) which will be interpreted as days from time of creation or a [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. If omitted, the cookie becomes a session cookie.\n\nTo create a cookie that expires in less than a day, you can check the [FAQ on the Wiki](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#expire-cookies-in-less-than-a-day).\n\n**Default:** Cookie is removed when the user closes the browser.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { expires: 365 })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### path\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating the path where the cookie is visible.\n\n**Default:** `/`\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.get('name') // => 'value'\nCookies.remove('name', { path: '' })\n```\n\n**Note regarding Internet Explorer:**\n\n> Due to an obscure bug in the underlying WinINET InternetGetCookie implementation, IEs document.cookie will not return a cookie if it was set with a path attribute containing a filename.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means one cannot set a path using `window.location.pathname` in case such pathname contains a filename like so: `/check.html` (or at least, such cookie cannot be read correctly).\n\nIn fact, you should never allow untrusted input to set the cookie attributes or you might be exposed to a [XSS attack](https://github.com/js-cookie/js-cookie/issues/396).\n\n### domain\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating a valid domain where the cookie should be visible. The cookie will also be visible to all subdomains.\n\n**Default:** Cookie is visible only to the domain or subdomain of the page where the cookie was created, except for Internet Explorer (see below).\n\n**Examples:**\n\nAssuming a cookie that is being created on `site.com`:\n\n```javascript\nCookies.set('name', 'value', { domain: 'subdomain.site.com' })\nCookies.get('name') // => undefined (need to read at 'subdomain.site.com')\n```\n\n**Note regarding Internet Explorer default behavior:**\n\n> Q3: If I dont specify a DOMAIN attribute (for) a cookie, IE sends it to all nested subdomains anyway? \n> A: Yes, a cookie set on example.com will be sent to sub2.sub1.example.com. \n> Internet Explorer differs from other browsers in this regard.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means that if you omit the `domain` attribute, it will be visible for a subdomain in IE.\n\n### secure\n\nEither `true` or `false`, indicating if the cookie transmission requires a secure protocol (https).\n\n**Default:** No secure protocol requirement.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { secure: true })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### sameSite\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String), with possible values `lax` or `strict`, prevents the browser from sending cookie along with cross-site requests.\n\nDefault: not set, i.e. include cookie in any request.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { sameSite: 'lax' })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### Setting up defaults\n\n```javascript\nconst api = Cookies.withAttributes({ path: '/', domain: '.example.com' })\n```\n\n## Converters\n\n### Read\n\nCreate a new instance of the api that overrides the default decoding implementation. All get methods that rely in a proper decoding to work, such as `Cookies.get()` and `Cookies.get('name')`, will run the given converter for each cookie. The returned value will be used as the cookie value.\n\nExample from reading one of the cookies that can only be decoded using the `escape` function:\n\n```javascript\ndocument.cookie = 'escaped=%u5317'\ndocument.cookie = 'default=%E5%8C%97'\nvar cookies = Cookies.withConverter({\n read: function (value, name) {\n if (name === 'escaped') {\n return unescape(value)\n }\n // Fall back to default for all other cookies\n return Cookies.converter.read(value, name)\n }\n})\ncookies.get('escaped') // 北\ncookies.get('default') // 北\ncookies.get() // { escaped: '北', default: '北' }\n```\n\n### Write\n\nCreate a new instance of the api that overrides the default encoding implementation:\n\n```javascript\nCookies.withConverter({\n write: function (value, name) {\n return value.toUpperCase()\n }\n})\n```\n\n## TypeScript declarations\n\n```\n$ npm i @types/js-cookie\n```\n\n## Server-side integration\n\nCheck out the [Servers Docs](SERVER_SIDE.md)\n\n## Contributing\n\nCheck out the [Contributing Guidelines](CONTRIBUTING.md)\n\n## Security\n\nFor vulnerability reports, send an e-mail to `jscookieproject at gmail dot com`\n\n## Releasing\n\nWe are using [release-it](https://www.npmjs.com/package/release-it) for automated releasing.\n\nStart a dry run to see what would happen:\n\n```\n$ npm run release minor -- --dry-run\n```\n\nDo a real release (publishes both to npm as well as create a new release on GitHub):\n\n```\n$ npm run release minor\n```\n\n_GitHub releases are created as a draft and need to be published manually!\n(This is so we are able to craft suitable release notes before publishing.)_\n\n## Supporters\n\n<p>\n <a href=\"https://www.browserstack.com/\"><img src=\"https://raw.githubusercontent.com/wiki/js-cookie/js-cookie/Browserstack-logo%402x.png\" width=\"150\"></a>\n</p>\n\nMany thanks to [BrowserStack](https://www.browserstack.com/) for providing unlimited browser testing free of cost.\n\n## Authors\n\n- [Klaus Hartl](https://github.com/carhartl)\n- [Fagner Brack](https://github.com/FagnerMartinsBrack)\n- And awesome [contributors](https://github.com/js-cookie/js-cookie/graphs/contributors)\n","readmeFilename":"README.md","gitHead":"099389f0161e5a8ed74033d432be9e6be9e19e00","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.0-beta.2","_nodeVersion":"12.10.0","_npmVersion":"6.10.3","dist":{"integrity":"sha512-X0UH6f8LeofSGqB89O8PB/4x9xqadIep2ga+ehId9202Dw6m3LqFOsGdtf1nMaVAXXtteol/ITOyF66p81mt7Q==","shasum":"35fd47ac2e199e18c39b71762c0e584816b44011","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.0-beta.2.tgz","fileCount":7,"unpackedSize":26858,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8pVbCRA9TVsSAnZWagAAz7gP/0AYlMYWU0RnFJFcMFyF\nkPIliFdBf6u4dWb5DWwy1tii+JblStCUJJ2NcIXgODpMd8zlvreWuxBBG9JV\nv8THpxIQFuLfN8RaXdd2hqRQUvU9y25nQ/cDLrEEvk9BSx9AJrdO+6jq+mp8\nfbm5TgC9SP6ukuw1oxt3//R6q5lBva50HS7lYdrHFX73gWHi55RJKXW/v/tb\nnnmefs7H1Qs9VWTZRJr4SK3MuLFBCBLv7VJYMgFvaEUuIqHcH50XYoOVfkd2\nZbINXO6qlJKV5pq9T7uqwlAsnCCiURK559KtA3gDQ0+mAa16y6Yo38bHTbs3\n7JMncYHmizYkDmT5fKsDr+ZzDefvjVLd2rc7iysTf5HcvWHwItrn7u0Oh0oP\n+QPNHMjjn32Vmo+yXqrk0gc8KviCIJeJxIJQEyHGicychQfmOKXAlUtNxwvj\nepzvBnZ0G4xutl/YRzwpPwvhjZNlTwedh7Vxeu9ImuNBDpH6txr+/CjIPjjT\nB1d5Flv0yt+0xhj0h0Xu0aaqSL6FovcyUmN4kXxNz9ojzvKK/MJtrhIbXgu9\nhJR1B78zAX/VHhjpi169/uV91bfAcgtXlaMRHBhdqaz2lRDfaPJB7biZjhZh\nF07wPBl36DA1qmpR5PYEwXK6N+hkt18ETiaxFuSYIh0OH0JCj9sB13NkswJP\nQEHE\r\n=BymJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDor6YVw0hQXNJlAmHM6sFyjk0dN1OfWw+EHFTA5+B/2gIgYU8vsPmGHEjOOmSDhZWp+oksE/lN2cVk5+QFGxl37QE="}]},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"gravatar@fagnermartins.com"}],"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.0-beta.2_1576179035158_0.7840449683839317"},"_hasShrinkwrap":false},"3.0.0-beta.3":{"name":"js-cookie","version":"3.0.0-beta.3","description":"A simple, lightweight JavaScript API for handling cookies","browser":"dist/js.cookie.js","module":"dist/js.cookie.mjs","directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"browserstack-runner":"^0.9.0","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-html":"^6.0.0","eslint-plugin-markdown":"^1.0.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^2.1.0","grunt-contrib-nodeunit":"^2.0.0","grunt-contrib-qunit":"^3.1.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^1.18.2","qunit":"^2.9.3","release-it":"^12.4.3","rollup":"^1.20.3","rollup-plugin-filesize":"^6.2.0","rollup-plugin-license":"^0.13.0","rollup-plugin-terser":"^5.1.3","standard":"^14.1.0"},"readme":"<p align=\"center\">\n <img src=\"https://cloud.githubusercontent.com/assets/835857/14581711/ba623018-0436-11e6-8fce-d2ccd4d379c9.gif\">\n</p>\n\n# JavaScript Cookie [![Build Status](https://travis-ci.org/js-cookie/js-cookie.svg?branch=master)](https://travis-ci.org/js-cookie/js-cookie) [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2)](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Code Climate](https://codeclimate.com/github/js-cookie/js-cookie.svg)](https://codeclimate.com/github/js-cookie/js-cookie) [![npm](https://img.shields.io/github/package-json/v/js-cookie/js-cookie)](https://www.npmjs.com/package/js-cookie) [![size](https://img.shields.io/bundlephobia/minzip/js-cookie/beta)](https://www.npmjs.com/package/js-cookie) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/js-cookie/badge?style=rounded)](https://www.jsdelivr.com/package/npm/js-cookie)\n\nA simple, lightweight JavaScript API for handling cookies\n\n- Works in [all](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) browsers\n- Accepts [any](#encoding) character\n- [Heavily](test) tested\n- No dependency\n- Supports ES modules\n- Supports AMD/CommonJS\n- [RFC 6265](https://tools.ietf.org/html/rfc6265) compliant\n- Useful [Wiki](https://github.com/js-cookie/js-cookie/wiki)\n- Enable [custom encoding/decoding](#converters)\n- **< 800 bytes** gzipped!\n\n**If you're viewing this at https://github.com/js-cookie/js-cookie, you're reading the documentation for the master branch.\n[View documentation for the latest release.](https://github.com/js-cookie/js-cookie/tree/latest#readme)**\n\n## Installation\n\n### NPM\n\nJavaScript Cookie supports [npm](https://www.npmjs.com/package/js-cookie) under the name `js-cookie`.\n\n```\n$ npm i js-cookie\n```\n\nThe npm package has a `module` field pointing to an ES module variant of the library, mainly to provide support for ES module aware bundlers, whereas its `browser` field points to an UMD module for full backward compatibility.\n\n### Direct download\n\nStarting with version 3 [releases](https://github.com/js-cookie/js-cookie/releases) are distributed with two variants of this library, an ES module as well as an UMD module.\n\nNote the different extensions: `.mjs` denotes the ES module, whereas `.js` is the UMD one.\n\nExample for how to load the ES module in a browser:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script type=\"module\">\n import Cookies from '/path/to/js.cookie.mjs'\n\n Cookies.set('foo', 'bar')\n</script>\n```\n\n_Not all browsers support ES modules natively yet_. For this reason the npm package/release provides both the ES and UMD module variant and you may want to include the ES module along with the UMD fallback to account for this:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script nomodule defer src=\"/path/to/js.cookie.js\"></script>\n```\n\nHere we're loading the nomodule script in a deferred fashion, because ES modules are deferred by default. This may not be strictly necessary depending on how you're using the library.\n\n### CDN\n\nAlternatively, include it via [jsDelivr CDN](https://www.jsdelivr.com/package/npm/js-cookie):\n\nUMD:\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.js\"></script>\n```\n\nES module:\n\n```html\n<script\n type=\"module\"\n src=\"https://cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.mjs\"\n></script>\n```\n\n## ES Module\n\nExample for how to import the ES module from another module:\n\n```javascript\nimport Cookies from 'js-cookie'\n\nCookies.set('foo', 'bar')\n```\n\n## Basic Usage\n\nCreate a cookie, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value')\n```\n\nCreate a cookie that expires 7 days from now, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value', { expires: 7 })\n```\n\nCreate an expiring cookie, valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { expires: 7, path: '' })\n```\n\nRead cookie:\n\n```javascript\nCookies.get('name') // => 'value'\nCookies.get('nothing') // => undefined\n```\n\nRead all visible cookies:\n\n```javascript\nCookies.get() // => { name: 'value' }\n```\n\n_Note: It is not possible to read a particular cookie by passing one of the cookie attributes (which may or may not\nhave been used when writing the cookie in question):_\n\n```javascript\nCookies.get('foo', { domain: 'sub.example.com' }) // `domain` won't have any effect...!\n```\n\nThe cookie with the name `foo` will only be available on `.get()` if it's visible from where the\ncode is called; the domain and/or path attribute will not have an effect when reading.\n\nDelete cookie:\n\n```javascript\nCookies.remove('name')\n```\n\nDelete a cookie valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.remove('name') // fail!\nCookies.remove('name', { path: '' }) // removed!\n```\n\n_IMPORTANT! When deleting a cookie and you're not relying on the [default attributes](#cookie-attributes), you must pass the exact same path and domain attributes that were used to set the cookie:_\n\n```javascript\nCookies.remove('name', { path: '', domain: '.yourdomain.com' })\n```\n\n_Note: Removing a nonexistent cookie neither raises any exception nor returns any value._\n\n## Namespace conflicts\n\nIf there is any danger of a conflict with the namespace `Cookies`, the `noConflict` method will allow you to define a new namespace and preserve the original one. This is especially useful when running the script on third party sites e.g. as part of a widget or SDK.\n\n```javascript\n// Assign the js-cookie api to a different variable and restore the original \"window.Cookies\"\nvar Cookies2 = Cookies.noConflict()\nCookies2.set('name', 'value')\n```\n\n_Note: The `.noConflict` method is not necessary when using AMD or CommonJS, thus it is not exposed in those environments._\n\n## Encoding\n\nThis project is [RFC 6265](http://tools.ietf.org/html/rfc6265#section-4.1.1) compliant. All special characters that are not allowed in the cookie-name or cookie-value are encoded with each one's UTF-8 Hex equivalent using [percent-encoding](http://en.wikipedia.org/wiki/Percent-encoding). \nThe only character in cookie-name or cookie-value that is allowed and still encoded is the percent `%` character, it is escaped in order to interpret percent input as literal. \nPlease note that the default encoding/decoding strategy is meant to be interoperable [only between cookies that are read/written by js-cookie](https://github.com/js-cookie/js-cookie/pull/200#discussion_r63270778). To override the default encoding/decoding strategy you need to use a [converter](#converters).\n\n_Note: According to [RFC 6265](https://tools.ietf.org/html/rfc6265#section-6.1), your cookies may get deleted if they are too big or there are too many cookies in the same domain, [more details here](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#why-are-my-cookies-being-deleted)._\n\n## Cookie Attributes\n\nCookie attribute defaults can be set globally by creating an instance of the api via `withAttributes()`, or individually for each call to `Cookies.set(...)` by passing a plain object as the last argument. Per-call attributes override the default attributes.\n\n### expires\n\nDefine when the cookie will be removed. Value can be a [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) which will be interpreted as days from time of creation or a [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. If omitted, the cookie becomes a session cookie.\n\nTo create a cookie that expires in less than a day, you can check the [FAQ on the Wiki](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#expire-cookies-in-less-than-a-day).\n\n**Default:** Cookie is removed when the user closes the browser.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { expires: 365 })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### path\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating the path where the cookie is visible.\n\n**Default:** `/`\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.get('name') // => 'value'\nCookies.remove('name', { path: '' })\n```\n\n**Note regarding Internet Explorer:**\n\n> Due to an obscure bug in the underlying WinINET InternetGetCookie implementation, IEs document.cookie will not return a cookie if it was set with a path attribute containing a filename.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means one cannot set a path using `window.location.pathname` in case such pathname contains a filename like so: `/check.html` (or at least, such cookie cannot be read correctly).\n\nIn fact, you should never allow untrusted input to set the cookie attributes or you might be exposed to a [XSS attack](https://github.com/js-cookie/js-cookie/issues/396).\n\n### domain\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating a valid domain where the cookie should be visible. The cookie will also be visible to all subdomains.\n\n**Default:** Cookie is visible only to the domain or subdomain of the page where the cookie was created, except for Internet Explorer (see below).\n\n**Examples:**\n\nAssuming a cookie that is being created on `site.com`:\n\n```javascript\nCookies.set('name', 'value', { domain: 'subdomain.site.com' })\nCookies.get('name') // => undefined (need to read at 'subdomain.site.com')\n```\n\n**Note regarding Internet Explorer default behavior:**\n\n> Q3: If I dont specify a DOMAIN attribute (for) a cookie, IE sends it to all nested subdomains anyway? \n> A: Yes, a cookie set on example.com will be sent to sub2.sub1.example.com. \n> Internet Explorer differs from other browsers in this regard.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means that if you omit the `domain` attribute, it will be visible for a subdomain in IE.\n\n### secure\n\nEither `true` or `false`, indicating if the cookie transmission requires a secure protocol (https).\n\n**Default:** No secure protocol requirement.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { secure: true })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### sameSite\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String), with possible values `lax` or `strict`, prevents the browser from sending cookie along with cross-site requests.\n\nDefault: not set, i.e. include cookie in any request.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { sameSite: 'lax' })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### Setting up defaults\n\n```javascript\nconst api = Cookies.withAttributes({ path: '/', domain: '.example.com' })\n```\n\n## Converters\n\n### Read\n\nCreate a new instance of the api that overrides the default decoding implementation. All get methods that rely in a proper decoding to work, such as `Cookies.get()` and `Cookies.get('name')`, will run the given converter for each cookie. The returned value will be used as the cookie value.\n\nExample from reading one of the cookies that can only be decoded using the `escape` function:\n\n```javascript\ndocument.cookie = 'escaped=%u5317'\ndocument.cookie = 'default=%E5%8C%97'\nvar cookies = Cookies.withConverter({\n read: function (value, name) {\n if (name === 'escaped') {\n return unescape(value)\n }\n // Fall back to default for all other cookies\n return Cookies.converter.read(value, name)\n }\n})\ncookies.get('escaped') // 北\ncookies.get('default') // 北\ncookies.get() // { escaped: '北', default: '北' }\n```\n\n### Write\n\nCreate a new instance of the api that overrides the default encoding implementation:\n\n```javascript\nCookies.withConverter({\n write: function (value, name) {\n return value.toUpperCase()\n }\n})\n```\n\n## TypeScript declarations\n\n```\n$ npm i @types/js-cookie\n```\n\n## Server-side integration\n\nCheck out the [Servers Docs](SERVER_SIDE.md)\n\n## Contributing\n\nCheck out the [Contributing Guidelines](CONTRIBUTING.md)\n\n## Security\n\nFor vulnerability reports, send an e-mail to `jscookieproject at gmail dot com`\n\n## Releasing\n\nWe are using [release-it](https://www.npmjs.com/package/release-it) for automated releasing.\n\nStart a dry run to see what would happen:\n\n```\n$ npm run release minor -- --dry-run\n```\n\nDo a real release (publishes both to npm as well as create a new release on GitHub):\n\n```\n$ npm run release minor\n```\n\n_GitHub releases are created as a draft and need to be published manually!\n(This is so we are able to craft suitable release notes before publishing.)_\n\n## Supporters\n\n<p>\n <a href=\"https://www.browserstack.com/\"><img src=\"https://raw.githubusercontent.com/wiki/js-cookie/js-cookie/Browserstack-logo%402x.png\" width=\"150\"></a>\n</p>\n\nMany thanks to [BrowserStack](https://www.browserstack.com/) for providing unlimited browser testing free of cost.\n\n## Authors\n\n- [Klaus Hartl](https://github.com/carhartl)\n- [Fagner Brack](https://github.com/FagnerMartinsBrack)\n- And awesome [contributors](https://github.com/js-cookie/js-cookie/graphs/contributors)\n","readmeFilename":"README.md","gitHead":"42416e8418d24c96de74e97d36db25acbc1444e7","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.0-beta.3","_nodeVersion":"13.2.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-BPSYe7ctWpojg0AZzGuR19RrIO8lVQWJ/+Qv0UBVzZmuB/Na1BOLkaZNittRcHfw5BOorM974EilDuNqmfL2UA==","shasum":"35a9827de63ee0600b761499e39f635a7ef40410","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.0-beta.3.tgz","fileCount":8,"unpackedSize":26977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/MGWCRA9TVsSAnZWagAAWMEQAIk8NIjhLOAxOK0gBGv7\nl6uebSf7RAo8HgT2nNWeCKtGkh3WjdY5VBSjrNl8eqUNeCIk4M9E9qoBeJH5\nhpU/EL9aZuc84P4HsPU/APAh4lKeGXY8CXqA436U2gvNIfOGZy8G9Jf68rYR\nRiM6bTsgQnFAJAm/PmW+jQpwtyU4HrA9AiYHRs5ZIwbHRDrhCgzBGiv7/a/p\nT1qoPx/6eFRtapXIqTKVpgCkOkbBzO1DRDjmrYl7zcvWPn1cFbaYYINZDwg+\nWT3PXVPWSdGeeadytUkaNHZIhUm1za0zrpDVHUZc067cr4Qg+GacHOursStc\ncUaMtyLUi/qf49MqLw9iFZgnzoe/YwHUoMoGgVe9g7gzd/p8UOpQMpPAxJCX\nd4NVuTaMrVtiO3ldkuKTRce0SEkALdUCpbKqpRzRxEHAHOFIcFanr1Dp/eKU\nnKdPx4jQR36abXKjgUCwx7X0hhHNs9JnGQbHoxYIA+3krRGtTzYCPP8GqXsb\ncrBepeVNECFA2rcywb0e04GDAk8AdptJLPWrFvqwvZC2cXUwtNta6viz9emS\n4cZMmDMm1NyUgc5fr4J+vWnUKMcWz3bsMlyUMn61P53PO7yZ8sDK0J7n0vDw\nBoOh+RbxKz4rTlFJw15gqw6QWAB4xZoThCc850Ww5VjQ+VSzfn05naxD2vFL\nrA+K\r\n=d3Gw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGO7Wc3appxk42Gz/p+HPh+RM8bi9dSsGM9lyEaZKehdAiAoRjmZSj0+nVG4CzlnvtGsOrcsXLc5dRU/Fqwd4KgYEQ=="}]},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"gravatar@fagnermartins.com"}],"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.0-beta.3_1576845717882_0.7000177195722459"},"_hasShrinkwrap":false},"3.0.0-beta.4":{"name":"js-cookie","version":"3.0.0-beta.4","description":"A simple, lightweight JavaScript API for handling cookies","browser":"dist/js.cookie.js","module":"dist/js.cookie.mjs","directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"browserstack-runner":"^0.9.0","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-html":"^6.0.0","eslint-plugin-markdown":"^1.0.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^2.1.0","grunt-contrib-nodeunit":"^2.0.0","grunt-contrib-qunit":"^3.1.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^1.18.2","qunit":"^2.9.3","release-it":"^12.4.3","rollup":"^1.20.3","rollup-plugin-filesize":"^6.2.0","rollup-plugin-license":"^0.13.0","rollup-plugin-terser":"^5.1.3","standard":"^14.1.0"},"readme":"<p align=\"center\">\n <img src=\"https://cloud.githubusercontent.com/assets/835857/14581711/ba623018-0436-11e6-8fce-d2ccd4d379c9.gif\">\n</p>\n\n# JavaScript Cookie [![Build Status](https://travis-ci.org/js-cookie/js-cookie.svg?branch=master)](https://travis-ci.org/js-cookie/js-cookie) [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2)](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Code Climate](https://codeclimate.com/github/js-cookie/js-cookie.svg)](https://codeclimate.com/github/js-cookie/js-cookie) [![npm](https://img.shields.io/github/package-json/v/js-cookie/js-cookie)](https://www.npmjs.com/package/js-cookie) [![size](https://img.shields.io/bundlephobia/minzip/js-cookie/beta)](https://www.npmjs.com/package/js-cookie) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/js-cookie/badge?style=rounded)](https://www.jsdelivr.com/package/npm/js-cookie)\n\nA simple, lightweight JavaScript API for handling cookies\n\n- Works in [all](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) browsers\n- Accepts [any](#encoding) character\n- [Heavily](test) tested\n- No dependency\n- Supports ES modules\n- Supports AMD/CommonJS\n- Useful [Wiki](https://github.com/js-cookie/js-cookie/wiki)\n- Enable [custom encoding/decoding](#converters)\n- **< 700 bytes** gzipped!\n\n**If you're viewing this at https://github.com/js-cookie/js-cookie, you're reading the documentation for the master branch.\n[View documentation for the latest release.](https://github.com/js-cookie/js-cookie/tree/latest#readme)**\n\n## Installation\n\n### NPM\n\nJavaScript Cookie supports [npm](https://www.npmjs.com/package/js-cookie) under the name `js-cookie`.\n\n```\n$ npm i js-cookie\n```\n\nThe npm package has a `module` field pointing to an ES module variant of the library, mainly to provide support for ES module aware bundlers, whereas its `browser` field points to an UMD module for full backward compatibility.\n\n### Direct download\n\nStarting with version 3 [releases](https://github.com/js-cookie/js-cookie/releases) are distributed with two variants of this library, an ES module as well as an UMD module.\n\nNote the different extensions: `.mjs` denotes the ES module, whereas `.js` is the UMD one.\n\nExample for how to load the ES module in a browser:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script type=\"module\">\n import Cookies from '/path/to/js.cookie.mjs'\n\n Cookies.set('foo', 'bar')\n</script>\n```\n\n_Not all browsers support ES modules natively yet_. For this reason the npm package/release provides both the ES and UMD module variant and you may want to include the ES module along with the UMD fallback to account for this:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script nomodule defer src=\"/path/to/js.cookie.js\"></script>\n```\n\nHere we're loading the nomodule script in a deferred fashion, because ES modules are deferred by default. This may not be strictly necessary depending on how you're using the library.\n\n### CDN\n\nAlternatively, include it via [jsDelivr CDN](https://www.jsdelivr.com/package/npm/js-cookie):\n\nUMD:\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.js\"></script>\n```\n\nES module:\n\n```html\n<script\n type=\"module\"\n src=\"https://cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.mjs\"\n></script>\n```\n\n## ES Module\n\nExample for how to import the ES module from another module:\n\n```javascript\nimport Cookies from 'js-cookie'\n\nCookies.set('foo', 'bar')\n```\n\n## Basic Usage\n\nCreate a cookie, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value')\n```\n\nCreate a cookie that expires 7 days from now, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value', { expires: 7 })\n```\n\nCreate an expiring cookie, valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { expires: 7, path: '' })\n```\n\nRead cookie:\n\n```javascript\nCookies.get('name') // => 'value'\nCookies.get('nothing') // => undefined\n```\n\nRead all visible cookies:\n\n```javascript\nCookies.get() // => { name: 'value' }\n```\n\n_Note: It is not possible to read a particular cookie by passing one of the cookie attributes (which may or may not\nhave been used when writing the cookie in question):_\n\n```javascript\nCookies.get('foo', { domain: 'sub.example.com' }) // `domain` won't have any effect...!\n```\n\nThe cookie with the name `foo` will only be available on `.get()` if it's visible from where the\ncode is called; the domain and/or path attribute will not have an effect when reading.\n\nDelete cookie:\n\n```javascript\nCookies.remove('name')\n```\n\nDelete a cookie valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.remove('name') // fail!\nCookies.remove('name', { path: '' }) // removed!\n```\n\n_IMPORTANT! When deleting a cookie and you're not relying on the [default attributes](#cookie-attributes), you must pass the exact same path and domain attributes that were used to set the cookie:_\n\n```javascript\nCookies.remove('name', { path: '', domain: '.yourdomain.com' })\n```\n\n_Note: Removing a nonexistent cookie neither raises any exception nor returns any value._\n\n## Namespace conflicts\n\nIf there is any danger of a conflict with the namespace `Cookies`, the `noConflict` method will allow you to define a new namespace and preserve the original one. This is especially useful when running the script on third party sites e.g. as part of a widget or SDK.\n\n```javascript\n// Assign the js-cookie api to a different variable and restore the original \"window.Cookies\"\nvar Cookies2 = Cookies.noConflict()\nCookies2.set('name', 'value')\n```\n\n_Note: The `.noConflict` method is not necessary when using AMD or CommonJS, thus it is not exposed in those environments._\n\n## Encoding\n\nSpecial characters that are not permitted in the cookie name (\";\" and \"=\") or cookie value (\";\") are encoded with their UTF-8 Hex equivalent using [percent-encoding](http://en.wikipedia.org/wiki/Percent-encoding).\nPlease note that the default encoding/decoding strategy is meant to be interoperable [only between cookies that are read/written by js-cookie](https://github.com/js-cookie/js-cookie/pull/200#discussion_r63270778). To override the default encoding/decoding strategy you need to use a [converter](#converters).\n\n## Cookie Attributes\n\nCookie attribute defaults can be set globally by creating an instance of the api via `withAttributes()`, or individually for each call to `Cookies.set(...)` by passing a plain object as the last argument. Per-call attributes override the default attributes.\n\n### expires\n\nDefine when the cookie will be removed. Value must be a [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) which will be interpreted as days from time of creation or a [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. If omitted, the cookie becomes a session cookie.\n\nTo create a cookie that expires in less than a day, you can check the [FAQ on the Wiki](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#expire-cookies-in-less-than-a-day).\n\n**Default:** Cookie is removed when the user closes the browser.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { expires: 365 })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### path\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating the path where the cookie is visible.\n\n**Default:** `/`\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.get('name') // => 'value'\nCookies.remove('name', { path: '' })\n```\n\n**Note regarding Internet Explorer:**\n\n> Due to an obscure bug in the underlying WinINET InternetGetCookie implementation, IEs document.cookie will not return a cookie if it was set with a path attribute containing a filename.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means one cannot set a path using `window.location.pathname` in case such pathname contains a filename like so: `/check.html` (or at least, such cookie cannot be read correctly).\n\nIn fact, you should never allow untrusted input to set the cookie attributes or you might be exposed to a [XSS attack](https://github.com/js-cookie/js-cookie/issues/396).\n\n### domain\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating a valid domain where the cookie should be visible. The cookie will also be visible to all subdomains.\n\n**Default:** Cookie is visible only to the domain or subdomain of the page where the cookie was created, except for Internet Explorer (see below).\n\n**Examples:**\n\nAssuming a cookie that is being created on `site.com`:\n\n```javascript\nCookies.set('name', 'value', { domain: 'subdomain.site.com' })\nCookies.get('name') // => undefined (need to read at 'subdomain.site.com')\n```\n\n**Note regarding Internet Explorer default behavior:**\n\n> Q3: If I dont specify a DOMAIN attribute (for) a cookie, IE sends it to all nested subdomains anyway? \n> A: Yes, a cookie set on example.com will be sent to sub2.sub1.example.com. \n> Internet Explorer differs from other browsers in this regard.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means that if you omit the `domain` attribute, it will be visible for a subdomain in IE.\n\n### secure\n\nEither `true` or `false`, indicating if the cookie transmission requires a secure protocol (https).\n\n**Default:** No secure protocol requirement.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { secure: true })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### sameSite\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String), with possible values `lax` or `strict`, prevents the browser from sending cookie along with cross-site requests.\n\nDefault: not set, i.e. include cookie in any request.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { sameSite: 'lax' })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### Setting up defaults\n\n```javascript\nconst api = Cookies.withAttributes({ path: '/', domain: '.example.com' })\n```\n\n## Converters\n\n### Read\n\nCreate a new instance of the api that overrides the default decoding implementation. All get methods that rely in a proper decoding to work, such as `Cookies.get()` and `Cookies.get('name')`, will run the given converter for each cookie. The returned value will be used as the cookie value.\n\nExample from reading one of the cookies that can only be decoded using the `escape` function:\n\n```javascript\ndocument.cookie = 'escaped=%u5317'\ndocument.cookie = 'default=%E5%8C%97'\nvar cookies = Cookies.withConverter({\n read: function (value, name) {\n if (name === 'escaped') {\n return unescape(value)\n }\n // Fall back to default for all other cookies\n return Cookies.converter.read(value, name)\n }\n})\ncookies.get('escaped') // 北\ncookies.get('default') // 北\ncookies.get() // { escaped: '北', default: '北' }\n```\n\n### Write\n\nCreate a new instance of the api that overrides the default encoding implementation:\n\n```javascript\nCookies.withConverter({\n write: function (value, name) {\n return value.toUpperCase()\n }\n})\n```\n\n## TypeScript declarations\n\n```\n$ npm i @types/js-cookie\n```\n\n## Server-side integration\n\nCheck out the [Servers Docs](SERVER_SIDE.md)\n\n## Contributing\n\nCheck out the [Contributing Guidelines](CONTRIBUTING.md)\n\n## Security\n\nFor vulnerability reports, send an e-mail to `jscookieproject at gmail dot com`\n\n## Releasing\n\nWe are using [release-it](https://www.npmjs.com/package/release-it) for automated releasing.\n\nStart a dry run to see what would happen:\n\n```\n$ npm run release minor -- --dry-run\n```\n\nDo a real release (publishes both to npm as well as create a new release on GitHub):\n\n```\n$ npm run release minor\n```\n\n_GitHub releases are created as a draft and need to be published manually!\n(This is so we are able to craft suitable release notes before publishing.)_\n\n## Supporters\n\n<p>\n <a href=\"https://www.browserstack.com/\"><img src=\"https://raw.githubusercontent.com/wiki/js-cookie/js-cookie/Browserstack-logo%402x.png\" width=\"150\"></a>\n</p>\n\nMany thanks to [BrowserStack](https://www.browserstack.com/) for providing unlimited browser testing free of cost.\n\n## Authors\n\n- [Klaus Hartl](https://github.com/carhartl)\n- [Fagner Brack](https://github.com/FagnerMartinsBrack)\n- And awesome [contributors](https://github.com/js-cookie/js-cookie/graphs/contributors)\n","readmeFilename":"README.md","gitHead":"40c95a94cb99d3afb65ca4ad60d46108732172a7","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.0-beta.4","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-uY/f97HDcNnF+EkZLELNWHQ12cy75IdAJ4gWSwQzsommhP+qusPM5VCd8kj6kA5eKAkEKGLUM63mSeAFuEXrpg==","shasum":"1f2f0e4be06b9d789c3a9e06136c4b4380aa65a7","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.0-beta.4.tgz","fileCount":8,"unpackedSize":24831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYOB5CRA9TVsSAnZWagAAZrgP/isyci5BsxZ6PGN2QfVR\ngNVPy191qtnEn+GVo32EwUYF+tcDjjtq3w0k/Lop05Th+W462c4JDVN/obm2\ni/j1ptYF6f7PNPFTZBCG9XX4UPbTs9gHYNpM5ukDRGPdrzvRt1oGewrcnqt5\nvwHC/zNjgoHrEhVzQtwPVpxy1tj8SBsVp57KQf7ncct3antDk6LCDQuk+/kh\n9b8/XJUk1Ew9Q/7KvQCJvf0oZG+I0vRQdxNWGSF7gQDspt7AZEWcVUJL7Tfl\nZgeyTT4dZZzx9uIEDeYcKWHAomALDNFwwVtIW2E/uWs3g9VeQM763rGdK/zu\njKjUyjICD0ypKlwqxTvWBcGdQnWtvJDloo0NEC3lxMIpj+377B7JFP7ORPen\n6ElHf2ZIv44NBxgLCJjkzuT3kVevyJvTFnDvChQCqAAiKHZ5Ug0xd3oMKlBh\nLb0wZJlrOR5U/Lk3OcL1YKhmd8morcWWvxA+fkxZp7qRP15F5RC85/UJt9NU\nmM3VunVXpmv47Qhx3HrCW6xwYBUssjWbYzXemcdv52o6AelMboGgKmhaWJNG\nVZ7D/68GLe1KOok4CDo17iy5jFAHFGKN8psPFtqKl1ZsLj8XxloQ1lhlAaht\nZNR13L/eV0V2x2/hDtTXTrSVVepuYfnMpDCiD8LUXO6lBci91P6QhUy/r2QD\nnrh2\r\n=t4i1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7G+fDm0qlg/mxZb8N81hvwpfKCXnL33fVeLmK84RVngIhANdF0MbTWsMvsGxApwVM3omfIyWHUxy48ltTaBOfjz5X"}]},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"gravatar@fagnermartins.com"}],"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.0-beta.4_1583407225501_0.4661385747432707"},"_hasShrinkwrap":false},"3.0.0-rc.0":{"name":"js-cookie","version":"3.0.0-rc.0","description":"A simple, lightweight JavaScript API for handling cookies","browser":"dist/js.cookie.js","module":"dist/js.cookie.mjs","directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"browserstack-runner":"^0.9.0","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-html":"^6.0.0","eslint-plugin-markdown":"^1.0.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^2.1.0","grunt-contrib-nodeunit":"^2.0.0","grunt-contrib-qunit":"^3.1.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^1.18.2","qunit":"^2.9.3","release-it":"^12.4.3","rollup":"^2.0.0","rollup-plugin-filesize":"^6.2.0","rollup-plugin-license":"^0.13.0","rollup-plugin-terser":"^5.1.3","standard":"^14.1.0"},"readme":"<p align=\"center\">\n <img src=\"https://cloud.githubusercontent.com/assets/835857/14581711/ba623018-0436-11e6-8fce-d2ccd4d379c9.gif\">\n</p>\n\n# JavaScript Cookie [![Build Status](https://travis-ci.org/js-cookie/js-cookie.svg?branch=master)](https://travis-ci.org/js-cookie/js-cookie) [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2)](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Code Climate](https://codeclimate.com/github/js-cookie/js-cookie.svg)](https://codeclimate.com/github/js-cookie/js-cookie) [![npm](https://img.shields.io/github/package-json/v/js-cookie/js-cookie)](https://www.npmjs.com/package/js-cookie) [![size](https://img.shields.io/bundlephobia/minzip/js-cookie/beta)](https://www.npmjs.com/package/js-cookie) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/js-cookie/badge?style=rounded)](https://www.jsdelivr.com/package/npm/js-cookie)\n\nA simple, lightweight JavaScript API for handling cookies\n\n- Works in [all](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) browsers\n- Accepts [any](#encoding) character\n- [Heavily](test) tested\n- No dependency\n- Supports ES modules\n- Supports AMD/CommonJS\n- Useful [Wiki](https://github.com/js-cookie/js-cookie/wiki)\n- Enable [custom encoding/decoding](#converters)\n- **< 700 bytes** gzipped!\n\n**If you're viewing this at https://github.com/js-cookie/js-cookie, you're reading the documentation for the master branch.\n[View documentation for the latest release.](https://github.com/js-cookie/js-cookie/tree/latest#readme)**\n\n## Installation\n\n### NPM\n\nJavaScript Cookie supports [npm](https://www.npmjs.com/package/js-cookie) under the name `js-cookie`.\n\n```\n$ npm i js-cookie\n```\n\nThe npm package has a `module` field pointing to an ES module variant of the library, mainly to provide support for ES module aware bundlers, whereas its `browser` field points to an UMD module for full backward compatibility.\n\n### Direct download\n\nStarting with version 3 [releases](https://github.com/js-cookie/js-cookie/releases) are distributed with two variants of this library, an ES module as well as an UMD module.\n\nNote the different extensions: `.mjs` denotes the ES module, whereas `.js` is the UMD one.\n\nExample for how to load the ES module in a browser:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script type=\"module\">\n import Cookies from '/path/to/js.cookie.mjs'\n\n Cookies.set('foo', 'bar')\n</script>\n```\n\n_Not all browsers support ES modules natively yet_. For this reason the npm package/release provides both the ES and UMD module variant and you may want to include the ES module along with the UMD fallback to account for this:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script nomodule defer src=\"/path/to/js.cookie.js\"></script>\n```\n\nHere we're loading the nomodule script in a deferred fashion, because ES modules are deferred by default. This may not be strictly necessary depending on how you're using the library.\n\n### CDN\n\nAlternatively, include it via [jsDelivr CDN](https://www.jsdelivr.com/package/npm/js-cookie):\n\nUMD:\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.js\"></script>\n```\n\nES module:\n\n```html\n<script\n type=\"module\"\n src=\"https://cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.mjs\"\n></script>\n```\n\n## ES Module\n\nExample for how to import the ES module from another module:\n\n```javascript\nimport Cookies from 'js-cookie'\n\nCookies.set('foo', 'bar')\n```\n\n## Basic Usage\n\nCreate a cookie, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value')\n```\n\nCreate a cookie that expires 7 days from now, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value', { expires: 7 })\n```\n\nCreate an expiring cookie, valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { expires: 7, path: '' })\n```\n\nRead cookie:\n\n```javascript\nCookies.get('name') // => 'value'\nCookies.get('nothing') // => undefined\n```\n\nRead all visible cookies:\n\n```javascript\nCookies.get() // => { name: 'value' }\n```\n\n_Note: It is not possible to read a particular cookie by passing one of the cookie attributes (which may or may not\nhave been used when writing the cookie in question):_\n\n```javascript\nCookies.get('foo', { domain: 'sub.example.com' }) // `domain` won't have any effect...!\n```\n\nThe cookie with the name `foo` will only be available on `.get()` if it's visible from where the\ncode is called; the domain and/or path attribute will not have an effect when reading.\n\nDelete cookie:\n\n```javascript\nCookies.remove('name')\n```\n\nDelete a cookie valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.remove('name') // fail!\nCookies.remove('name', { path: '' }) // removed!\n```\n\n_IMPORTANT! When deleting a cookie and you're not relying on the [default attributes](#cookie-attributes), you must pass the exact same path and domain attributes that were used to set the cookie:_\n\n```javascript\nCookies.remove('name', { path: '', domain: '.yourdomain.com' })\n```\n\n_Note: Removing a nonexistent cookie neither raises any exception nor returns any value._\n\n## Namespace conflicts\n\nIf there is any danger of a conflict with the namespace `Cookies`, the `noConflict` method will allow you to define a new namespace and preserve the original one. This is especially useful when running the script on third party sites e.g. as part of a widget or SDK.\n\n```javascript\n// Assign the js-cookie api to a different variable and restore the original \"window.Cookies\"\nvar Cookies2 = Cookies.noConflict()\nCookies2.set('name', 'value')\n```\n\n_Note: The `.noConflict` method is not necessary when using AMD or CommonJS, thus it is not exposed in those environments._\n\n## Encoding\n\nSpecial characters that are not permitted in the cookie name (\";\" and \"=\") or cookie value (\";\") are encoded with their UTF-8 Hex equivalent using [percent-encoding](http://en.wikipedia.org/wiki/Percent-encoding).\nPlease note that the default encoding/decoding strategy is meant to be interoperable [only between cookies that are read/written by js-cookie](https://github.com/js-cookie/js-cookie/pull/200#discussion_r63270778). To override the default encoding/decoding strategy you need to use a [converter](#converters).\n\n## Cookie Attributes\n\nCookie attribute defaults can be set globally by creating an instance of the api via `withAttributes()`, or individually for each call to `Cookies.set(...)` by passing a plain object as the last argument. Per-call attributes override the default attributes.\n\n### expires\n\nDefine when the cookie will be removed. Value must be a [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) which will be interpreted as days from time of creation or a [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. If omitted, the cookie becomes a session cookie.\n\nTo create a cookie that expires in less than a day, you can check the [FAQ on the Wiki](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#expire-cookies-in-less-than-a-day).\n\n**Default:** Cookie is removed when the user closes the browser.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { expires: 365 })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### path\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating the path where the cookie is visible.\n\n**Default:** `/`\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.get('name') // => 'value'\nCookies.remove('name', { path: '' })\n```\n\n**Note regarding Internet Explorer:**\n\n> Due to an obscure bug in the underlying WinINET InternetGetCookie implementation, IEs document.cookie will not return a cookie if it was set with a path attribute containing a filename.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means one cannot set a path using `window.location.pathname` in case such pathname contains a filename like so: `/check.html` (or at least, such cookie cannot be read correctly).\n\nIn fact, you should never allow untrusted input to set the cookie attributes or you might be exposed to a [XSS attack](https://github.com/js-cookie/js-cookie/issues/396).\n\n### domain\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating a valid domain where the cookie should be visible. The cookie will also be visible to all subdomains.\n\n**Default:** Cookie is visible only to the domain or subdomain of the page where the cookie was created, except for Internet Explorer (see below).\n\n**Examples:**\n\nAssuming a cookie that is being created on `site.com`:\n\n```javascript\nCookies.set('name', 'value', { domain: 'subdomain.site.com' })\nCookies.get('name') // => undefined (need to read at 'subdomain.site.com')\n```\n\n**Note regarding Internet Explorer default behavior:**\n\n> Q3: If I dont specify a DOMAIN attribute (for) a cookie, IE sends it to all nested subdomains anyway? \n> A: Yes, a cookie set on example.com will be sent to sub2.sub1.example.com. \n> Internet Explorer differs from other browsers in this regard.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means that if you omit the `domain` attribute, it will be visible for a subdomain in IE.\n\n### secure\n\nEither `true` or `false`, indicating if the cookie transmission requires a secure protocol (https).\n\n**Default:** No secure protocol requirement.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { secure: true })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### sameSite\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String), with possible values `lax` or `strict`, prevents the browser from sending cookie along with cross-site requests.\n\nDefault: not set, i.e. include cookie in any request.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { sameSite: 'lax' })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### Setting up defaults\n\n```javascript\nconst api = Cookies.withAttributes({ path: '/', domain: '.example.com' })\n```\n\n## Converters\n\n### Read\n\nCreate a new instance of the api that overrides the default decoding implementation. All get methods that rely in a proper decoding to work, such as `Cookies.get()` and `Cookies.get('name')`, will run the given converter for each cookie. The returned value will be used as the cookie value.\n\nExample from reading one of the cookies that can only be decoded using the `escape` function:\n\n```javascript\ndocument.cookie = 'escaped=%u5317'\ndocument.cookie = 'default=%E5%8C%97'\nvar cookies = Cookies.withConverter({\n read: function (value, name) {\n if (name === 'escaped') {\n return unescape(value)\n }\n // Fall back to default for all other cookies\n return Cookies.converter.read(value, name)\n }\n})\ncookies.get('escaped') // 北\ncookies.get('default') // 北\ncookies.get() // { escaped: '北', default: '北' }\n```\n\n### Write\n\nCreate a new instance of the api that overrides the default encoding implementation:\n\n```javascript\nCookies.withConverter({\n write: function (value, name) {\n return value.toUpperCase()\n }\n})\n```\n\n## TypeScript declarations\n\n```\n$ npm i @types/js-cookie\n```\n\n## Server-side integration\n\nCheck out the [Servers Docs](SERVER_SIDE.md)\n\n## Contributing\n\nCheck out the [Contributing Guidelines](CONTRIBUTING.md)\n\n## Security\n\nFor vulnerability reports, send an e-mail to `jscookieproject at gmail dot com`\n\n## Releasing\n\nWe are using [release-it](https://www.npmjs.com/package/release-it) for automated releasing.\n\nStart a dry run to see what would happen:\n\n```\n$ npm run release minor -- --dry-run\n```\n\nDo a real release (publishes both to npm as well as create a new release on GitHub):\n\n```\n$ npm run release minor\n```\n\n_GitHub releases are created as a draft and need to be published manually!\n(This is so we are able to craft suitable release notes before publishing.)_\n\n## Supporters\n\n<p>\n <a href=\"https://www.browserstack.com/\"><img src=\"https://raw.githubusercontent.com/wiki/js-cookie/js-cookie/Browserstack-logo%402x.png\" width=\"150\"></a>\n</p>\n\nMany thanks to [BrowserStack](https://www.browserstack.com/) for providing unlimited browser testing free of cost.\n\n## Authors\n\n- [Klaus Hartl](https://github.com/carhartl)\n- [Fagner Brack](https://github.com/FagnerMartinsBrack)\n- And awesome [contributors](https://github.com/js-cookie/js-cookie/graphs/contributors)\n","readmeFilename":"README.md","gitHead":"5198674f45861adde9c9a2c29d7314ed0b76aece","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.0-rc.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-XzqPqXoTxtMfV1eH7IgQC+iz4sj1lgCR4h3XsShI1cTOyL0yvhSU7hOCpzXTybYHP4RR5oGOAWkDZx5czerg/Q==","shasum":"13fb285ff91bc96433b3539751aee1b48465898f","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.0-rc.0.tgz","fileCount":8,"unpackedSize":24850,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaO02CRA9TVsSAnZWagAAt5AQAIG3unn/04WXZyyuOEkw\nRZNGRiUECbaVHthhoMwzRi6tesy+hJ6cxYqu5qOLqn/VmlrZsxr+gvJvuHa+\nb073w0f7aDWLmjcSzrwMoohYmmopDH2TtphUgQ0Xil+K7ODi5Rw9+G/45w8K\no1VpdBjAWlSnPJbU0ho/Kh2Pku5yvA9UxNRAJfyoTLloBQAE4yU7FSOMhmNb\n/vcHf8dd0BSjK5NcYwys93BKvnFiY90xVpNUGsbzXa8Uri0dlVCTjE8JPqfw\ngLtBeW/3w8QWYDb/O3vw0IeguNTS9FlDylDWe70Q+/8M7qoGwyRHHBXVlJlO\n6+BtE4Cc67Q4+Rfr7FKAHbJvdemDDMCoofdJnPumJioQNcupfIbs/di33bcq\nBGmz2GLnwRu/ILIOIsA3cTAmuORuc+gVHo90waqTIX/mE5vaN2FJ0aMKp0nv\nJC6vet2vSlw8Hb6vq18/xX8pVWqkAZ4xsRVlXFrL0nHIjs7+96+mvIhc5eqV\n4rwKZGETWprIliVI/ZhvnQtJDMe7X/R14snyPOTN49N0HI8QhquJZcMUs2OI\nKUfP/c/4IkzWzsfiVWcCY27N6l5qfToYDACY5gZ7dK7wQwR2ps10X4uOGIQV\nloyrdm2Ki6zdvr8st9R24LhZnjXJgB4kGgqiL/UsNjIILkaCBzOUyYGMdUca\nxTBT\r\n=cW9A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIzJepJZ7K95F7pVN0GbiDxZqbE3JYHlJPTNS/pFOueAIgIpNwYPTCQpNWCEIqqi+vZWYTa/oMoMJahQztC5PWtoQ="}]},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"gravatar@fagnermartins.com"}],"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.0-rc.0_1583934773741_0.4172789662646059"},"_hasShrinkwrap":false},"3.0.0-rc.1":{"name":"js-cookie","version":"3.0.0-rc.1","description":"A simple, lightweight JavaScript API for handling cookies","browser":"dist/js.cookie.js","module":"dist/js.cookie.mjs","directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"browserstack-runner":"^0.9.0","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-html":"^6.0.0","eslint-plugin-markdown":"^1.0.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^2.1.0","grunt-contrib-nodeunit":"^2.0.0","grunt-contrib-qunit":"^3.1.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^1.18.2","qunit":"^2.9.3","release-it":"^12.4.3","rollup":"^2.0.0","rollup-plugin-filesize":"^6.2.0","rollup-plugin-license":"^0.13.0","rollup-plugin-terser":"^5.1.3","standard":"^14.1.0"},"engines":{"node":">=10"},"readme":"<p align=\"center\">\n <img src=\"https://cloud.githubusercontent.com/assets/835857/14581711/ba623018-0436-11e6-8fce-d2ccd4d379c9.gif\">\n</p>\n\n# JavaScript Cookie [![Build Status](https://travis-ci.org/js-cookie/js-cookie.svg?branch=master)](https://travis-ci.org/js-cookie/js-cookie) [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2)](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Code Climate](https://codeclimate.com/github/js-cookie/js-cookie.svg)](https://codeclimate.com/github/js-cookie/js-cookie) [![npm](https://img.shields.io/github/package-json/v/js-cookie/js-cookie)](https://www.npmjs.com/package/js-cookie) [![size](https://img.shields.io/bundlephobia/minzip/js-cookie/rc)](https://www.npmjs.com/package/js-cookie) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/js-cookie/badge?style=rounded)](https://www.jsdelivr.com/package/npm/js-cookie)\n\nA simple, lightweight JavaScript API for handling cookies\n\n- Works in [all](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) browsers\n- Accepts [any](#encoding) character\n- [Heavily](test) tested\n- No dependency\n- Supports ES modules\n- Supports AMD/CommonJS\n- [RFC 6265](https://tools.ietf.org/html/rfc6265) compliant\n- Useful [Wiki](https://github.com/js-cookie/js-cookie/wiki)\n- Enable [custom encoding/decoding](#converters)\n- **< 800 bytes** gzipped!\n\n**If you're viewing this at https://github.com/js-cookie/js-cookie, you're reading the documentation for the master branch.\n[View documentation for the latest release.](https://github.com/js-cookie/js-cookie/tree/latest#readme)**\n\n## Installation\n\n### NPM\n\nJavaScript Cookie supports [npm](https://www.npmjs.com/package/js-cookie) under the name `js-cookie`.\n\n```\n$ npm i js-cookie\n```\n\nThe npm package has a `module` field pointing to an ES module variant of the library, mainly to provide support for ES module aware bundlers, whereas its `browser` field points to an UMD module for full backward compatibility.\n\n### Direct download\n\nStarting with version 3 [releases](https://github.com/js-cookie/js-cookie/releases) are distributed with two variants of this library, an ES module as well as an UMD module.\n\nNote the different extensions: `.mjs` denotes the ES module, whereas `.js` is the UMD one.\n\nExample for how to load the ES module in a browser:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script type=\"module\">\n import Cookies from '/path/to/js.cookie.mjs'\n\n Cookies.set('foo', 'bar')\n</script>\n```\n\n_Not all browsers support ES modules natively yet_. For this reason the npm package/release provides both the ES and UMD module variant and you may want to include the ES module along with the UMD fallback to account for this:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script nomodule defer src=\"/path/to/js.cookie.js\"></script>\n```\n\nHere we're loading the nomodule script in a deferred fashion, because ES modules are deferred by default. This may not be strictly necessary depending on how you're using the library.\n\n### CDN\n\nAlternatively, include it via [jsDelivr CDN](https://www.jsdelivr.com/package/npm/js-cookie):\n\nUMD:\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js\"></script>\n```\n\nES module:\n\n```html\n<script\n type=\"module\"\n src=\"https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.mjs\"\n></script>\n```\n\n## ES Module\n\nExample for how to import the ES module from another module:\n\n```javascript\nimport Cookies from 'js-cookie'\n\nCookies.set('foo', 'bar')\n```\n\n## Basic Usage\n\nCreate a cookie, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value')\n```\n\nCreate a cookie that expires 7 days from now, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value', { expires: 7 })\n```\n\nCreate an expiring cookie, valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { expires: 7, path: '' })\n```\n\nRead cookie:\n\n```javascript\nCookies.get('name') // => 'value'\nCookies.get('nothing') // => undefined\n```\n\nRead all visible cookies:\n\n```javascript\nCookies.get() // => { name: 'value' }\n```\n\n_Note: It is not possible to read a particular cookie by passing one of the cookie attributes (which may or may not\nhave been used when writing the cookie in question):_\n\n```javascript\nCookies.get('foo', { domain: 'sub.example.com' }) // `domain` won't have any effect...!\n```\n\nThe cookie with the name `foo` will only be available on `.get()` if it's visible from where the\ncode is called; the domain and/or path attribute will not have an effect when reading.\n\nDelete cookie:\n\n```javascript\nCookies.remove('name')\n```\n\nDelete a cookie valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.remove('name') // fail!\nCookies.remove('name', { path: '' }) // removed!\n```\n\n_IMPORTANT! When deleting a cookie and you're not relying on the [default attributes](#cookie-attributes), you must pass the exact same path and domain attributes that were used to set the cookie:_\n\n```javascript\nCookies.remove('name', { path: '', domain: '.yourdomain.com' })\n```\n\n_Note: Removing a nonexistent cookie neither raises any exception nor returns any value._\n\n## Namespace conflicts\n\nIf there is any danger of a conflict with the namespace `Cookies`, the `noConflict` method will allow you to define a new namespace and preserve the original one. This is especially useful when running the script on third party sites e.g. as part of a widget or SDK.\n\n```javascript\n// Assign the js-cookie api to a different variable and restore the original \"window.Cookies\"\nvar Cookies2 = Cookies.noConflict()\nCookies2.set('name', 'value')\n```\n\n_Note: The `.noConflict` method is not necessary when using AMD or CommonJS, thus it is not exposed in those environments._\n\n## Encoding\n\nThis project is [RFC 6265](http://tools.ietf.org/html/rfc6265#section-4.1.1) compliant. All special characters that are not allowed in the cookie-name or cookie-value are encoded with each one's UTF-8 Hex equivalent using [percent-encoding](http://en.wikipedia.org/wiki/Percent-encoding). \nThe only character in cookie-name or cookie-value that is allowed and still encoded is the percent `%` character, it is escaped in order to interpret percent input as literal. \nPlease note that the default encoding/decoding strategy is meant to be interoperable [only between cookies that are read/written by js-cookie](https://github.com/js-cookie/js-cookie/pull/200#discussion_r63270778). To override the default encoding/decoding strategy you need to use a [converter](#converters).\n\n_Note: According to [RFC 6265](https://tools.ietf.org/html/rfc6265#section-6.1), your cookies may get deleted if they are too big or there are too many cookies in the same domain, [more details here](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#why-are-my-cookies-being-deleted)._\n\n## Cookie Attributes\n\nCookie attribute defaults can be set globally by creating an instance of the api via `withAttributes()`, or individually for each call to `Cookies.set(...)` by passing a plain object as the last argument. Per-call attributes override the default attributes.\n\n### expires\n\nDefine when the cookie will be removed. Value must be a [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) which will be interpreted as days from time of creation or a [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. If omitted, the cookie becomes a session cookie.\n\nTo create a cookie that expires in less than a day, you can check the [FAQ on the Wiki](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#expire-cookies-in-less-than-a-day).\n\n**Default:** Cookie is removed when the user closes the browser.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { expires: 365 })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### path\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating the path where the cookie is visible.\n\n**Default:** `/`\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.get('name') // => 'value'\nCookies.remove('name', { path: '' })\n```\n\n**Note regarding Internet Explorer:**\n\n> Due to an obscure bug in the underlying WinINET InternetGetCookie implementation, IEs document.cookie will not return a cookie if it was set with a path attribute containing a filename.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means one cannot set a path using `window.location.pathname` in case such pathname contains a filename like so: `/check.html` (or at least, such cookie cannot be read correctly).\n\nIn fact, you should never allow untrusted input to set the cookie attributes or you might be exposed to a [XSS attack](https://github.com/js-cookie/js-cookie/issues/396).\n\n### domain\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating a valid domain where the cookie should be visible. The cookie will also be visible to all subdomains.\n\n**Default:** Cookie is visible only to the domain or subdomain of the page where the cookie was created, except for Internet Explorer (see below).\n\n**Examples:**\n\nAssuming a cookie that is being created on `site.com`:\n\n```javascript\nCookies.set('name', 'value', { domain: 'subdomain.site.com' })\nCookies.get('name') // => undefined (need to read at 'subdomain.site.com')\n```\n\n**Note regarding Internet Explorer default behavior:**\n\n> Q3: If I dont specify a DOMAIN attribute (for) a cookie, IE sends it to all nested subdomains anyway? \n> A: Yes, a cookie set on example.com will be sent to sub2.sub1.example.com. \n> Internet Explorer differs from other browsers in this regard.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means that if you omit the `domain` attribute, it will be visible for a subdomain in IE.\n\n### secure\n\nEither `true` or `false`, indicating if the cookie transmission requires a secure protocol (https).\n\n**Default:** No secure protocol requirement.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { secure: true })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### sameSite\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String), allowing to control whether the browser is sending a cookie along with cross-site requests.\n\nDefault: not set.\n\n**Note that more recent browsers are making \"Lax\" the default value even without specifiying anything here.**\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { sameSite: 'strict' })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### Setting up defaults\n\n```javascript\nconst api = Cookies.withAttributes({ path: '/', domain: '.example.com' })\n```\n\n## Converters\n\n### Read\n\nCreate a new instance of the api that overrides the default decoding implementation. All get methods that rely in a proper decoding to work, such as `Cookies.get()` and `Cookies.get('name')`, will run the given converter for each cookie. The returned value will be used as the cookie value.\n\nExample from reading one of the cookies that can only be decoded using the `escape` function:\n\n```javascript\ndocument.cookie = 'escaped=%u5317'\ndocument.cookie = 'default=%E5%8C%97'\nvar cookies = Cookies.withConverter({\n read: function (value, name) {\n if (name === 'escaped') {\n return unescape(value)\n }\n // Fall back to default for all other cookies\n return Cookies.converter.read(value, name)\n }\n})\ncookies.get('escaped') // 北\ncookies.get('default') // 北\ncookies.get() // { escaped: '北', default: '北' }\n```\n\n### Write\n\nCreate a new instance of the api that overrides the default encoding implementation:\n\n```javascript\nCookies.withConverter({\n write: function (value, name) {\n return value.toUpperCase()\n }\n})\n```\n\n## TypeScript declarations\n\n```\n$ npm i @types/js-cookie\n```\n\n## Server-side integration\n\nCheck out the [Servers Docs](SERVER_SIDE.md)\n\n## Contributing\n\nCheck out the [Contributing Guidelines](CONTRIBUTING.md)\n\n## Security\n\nFor vulnerability reports, send an e-mail to `js-cookie at googlegroups dot com`\n\n## Releasing\n\nWe are using [release-it](https://www.npmjs.com/package/release-it) for automated releasing.\n\nStart a dry run to see what would happen:\n\n```\n$ npm run release minor -- --dry-run\n```\n\nDo a real release (publishes both to npm as well as create a new release on GitHub):\n\n```\n$ npm run release minor\n```\n\n_GitHub releases are created as a draft and need to be published manually!\n(This is so we are able to craft suitable release notes before publishing.)_\n\n## Supporters\n\n<p>\n <a href=\"https://www.browserstack.com/\"><img src=\"https://raw.githubusercontent.com/wiki/js-cookie/js-cookie/Browserstack-logo%402x.png\" width=\"150\"></a>\n</p>\n\nMany thanks to [BrowserStack](https://www.browserstack.com/) for providing unlimited browser testing free of cost.\n\n## Authors\n\n- [Klaus Hartl](https://github.com/carhartl)\n- [Fagner Brack](https://github.com/FagnerMartinsBrack)\n- And awesome [contributors](https://github.com/js-cookie/js-cookie/graphs/contributors)\n","readmeFilename":"README.md","gitHead":"eceefcc0be5bcb07d6ca32b03978e2c6f8cc848e","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.0-rc.1","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-UG5OeBDTwBLXm+d7djWjQ+AzZXeRHbQ04Wk1uWYG1BdsmTZa0ET4E3DF5yRF+4U0yv+2N80Bg22DcjVcWidMqA==","shasum":"20f31aa587434855a2b8394542ba38d9f84a3889","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.0-rc.1.tgz","fileCount":8,"unpackedSize":27082,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfV4K2CRA9TVsSAnZWagAA+DIP/A/5ABBbZSDK+i278hKd\nxUzsXhtlC3cEYW8NKRy6ugI2CfDxXBuAHC3neXXeHV0CGZ5Vu+qqU2gWVaLQ\nRaBqy8Am2ErKqDMbiX+rKjL5bEwPXnpzRxl9SXCORIaqc43J6NOFDuqj+DyO\n/hVpwtxQ2YQw7vGoEduI5BAKewJ+HS4thQu8yfwB1HdRSzk5Bu3rBi+IL9NH\npBqoYuCg/pDnqEhltsRzw0y9eMi/7RwT4vWQxgcP4IMXOqUYtl0ksU7cY+il\nDJvv0z/KudASHlYLHUC0pKabKsSCHfyvysfKNr6ukCVH6EAxyZkosQ2QMuc1\nGFrWI3Nm5KNUR9higoVc5CiOls/8GD6CauJU4kwTXGXD+3uNa9D2DBVp4VXn\nwBzqUZFlUxLKTrU4leQaY1ruKw9v95SjtfBWeChjEQwN+7x4BcEzCJIk+t51\nJl0WxJN1PFXonugFPYlZetF4JZSjJngZChmaMWJbE/VKjo/5XY8PTZO723wi\nbq2FjV0zb5owJJRKceC3556+axp8hwQ8LkivBIrR4QvRkYq3r9tU6q6x+DlG\nIukbQdoJB6ua4/SJojd8THWD+K5wYYBNu5iFtm4eB5wl5UVAO84XK1cTRLGJ\nS6jCIEsmSerfgubOGripZqtN7gxmU4NZ+zFOFUcLrQVhuc9pu+cilA1E0ISf\n/Cw8\r\n=oP+d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0WMjZa6NFv8Ce0GJkAyA81WcHus/+g0lDXvRdCcsNggIhAIrhVkjCOMZ/9VysfzVMwGWFwPQyG4axaBvKChmZzgC7"}]},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"gravatar@fagnermartins.com"}],"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.0-rc.1_1599570614021_0.798072474626609"},"_hasShrinkwrap":false},"3.0.0-rc.2":{"name":"js-cookie","version":"3.0.0-rc.2","description":"A simple, lightweight JavaScript API for handling cookies","main":"dist/js.cookie.js","module":"dist/js.cookie.mjs","unpkg":"dist/js.cookie.umd.min.js","jsdelivr":"dist/js.cookie.umd.min.js","exports":{"import":"dist/js.cookie.mjs","require":"dist/js.cookie.js"},"directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"browserstack-runner":"^0.9.0","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-html":"^6.0.0","eslint-plugin-markdown":"^1.0.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^2.1.0","grunt-contrib-nodeunit":"^2.0.0","grunt-contrib-qunit":"^3.1.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^1.18.2","qunit":"^2.9.3","release-it":"^12.4.3","rollup":"^2.0.0","rollup-plugin-filesize":"^6.2.0","rollup-plugin-license":"^0.13.0","rollup-plugin-terser":"^5.1.3","standard":"^14.1.0"},"engines":{"node":">=10"},"gitHead":"7cc5c43f5235d6eb19e7ad9c871543c033795aa8","readme":"<p align=\"center\">\n <img src=\"https://cloud.githubusercontent.com/assets/835857/14581711/ba623018-0436-11e6-8fce-d2ccd4d379c9.gif\">\n</p>\n\n# JavaScript Cookie [![Build Status](https://travis-ci.org/js-cookie/js-cookie.svg?branch=master)](https://travis-ci.org/js-cookie/js-cookie) [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2)](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Code Climate](https://codeclimate.com/github/js-cookie/js-cookie.svg)](https://codeclimate.com/github/js-cookie/js-cookie) [![npm](https://img.shields.io/github/package-json/v/js-cookie/js-cookie)](https://www.npmjs.com/package/js-cookie) [![size](https://img.shields.io/bundlephobia/minzip/js-cookie/rc)](https://www.npmjs.com/package/js-cookie) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/js-cookie/badge?style=rounded)](https://www.jsdelivr.com/package/npm/js-cookie)\n\nA simple, lightweight JavaScript API for handling cookies\n\n- Works in [all](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) browsers\n- Accepts [any](#encoding) character\n- [Heavily](test) tested\n- No dependency\n- Supports ES modules\n- Supports AMD/CommonJS\n- [RFC 6265](https://tools.ietf.org/html/rfc6265) compliant\n- Useful [Wiki](https://github.com/js-cookie/js-cookie/wiki)\n- Enable [custom encoding/decoding](#converters)\n- **< 800 bytes** gzipped!\n\n**If you're viewing this at https://github.com/js-cookie/js-cookie, you're reading the documentation for the master branch.\n[View documentation for the latest release.](https://github.com/js-cookie/js-cookie/tree/latest#readme)**\n\n## Installation\n\n### NPM\n\nJavaScript Cookie supports [npm](https://www.npmjs.com/package/js-cookie) under the name `js-cookie`.\n\n```\n$ npm i js-cookie\n```\n\nThe npm package has a `module` field pointing to an ES module variant of the library, mainly to provide support for ES module aware bundlers, whereas its `browser` field points to an UMD module for full backward compatibility.\n\n### Direct download\n\nStarting with version 3 [releases](https://github.com/js-cookie/js-cookie/releases) are distributed with two variants of this library, an ES module as well as an UMD module.\n\nNote the different extensions: `.mjs` denotes the ES module, whereas `.js` is the UMD one.\n\nExample for how to load the ES module in a browser:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script type=\"module\">\n import Cookies from '/path/to/js.cookie.mjs'\n\n Cookies.set('foo', 'bar')\n</script>\n```\n\n_Not all browsers support ES modules natively yet_. For this reason the npm package/release provides both the ES and UMD module variant and you may want to include the ES module along with the UMD fallback to account for this:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script nomodule defer src=\"/path/to/js.cookie.js\"></script>\n```\n\nHere we're loading the nomodule script in a deferred fashion, because ES modules are deferred by default. This may not be strictly necessary depending on how you're using the library.\n\n### CDN\n\nAlternatively, include it via [jsDelivr CDN](https://www.jsdelivr.com/package/npm/js-cookie):\n\nUMD:\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js\"></script>\n```\n\nES module:\n\n```html\n<script\n type=\"module\"\n src=\"https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.mjs\"\n></script>\n```\n\n## ES Module\n\nExample for how to import the ES module from another module:\n\n```javascript\nimport Cookies from 'js-cookie'\n\nCookies.set('foo', 'bar')\n```\n\n## Basic Usage\n\nCreate a cookie, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value')\n```\n\nCreate a cookie that expires 7 days from now, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value', { expires: 7 })\n```\n\nCreate an expiring cookie, valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { expires: 7, path: '' })\n```\n\nRead cookie:\n\n```javascript\nCookies.get('name') // => 'value'\nCookies.get('nothing') // => undefined\n```\n\nRead all visible cookies:\n\n```javascript\nCookies.get() // => { name: 'value' }\n```\n\n_Note: It is not possible to read a particular cookie by passing one of the cookie attributes (which may or may not\nhave been used when writing the cookie in question):_\n\n```javascript\nCookies.get('foo', { domain: 'sub.example.com' }) // `domain` won't have any effect...!\n```\n\nThe cookie with the name `foo` will only be available on `.get()` if it's visible from where the\ncode is called; the domain and/or path attribute will not have an effect when reading.\n\nDelete cookie:\n\n```javascript\nCookies.remove('name')\n```\n\nDelete a cookie valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.remove('name') // fail!\nCookies.remove('name', { path: '' }) // removed!\n```\n\n_IMPORTANT! When deleting a cookie and you're not relying on the [default attributes](#cookie-attributes), you must pass the exact same path and domain attributes that were used to set the cookie:_\n\n```javascript\nCookies.remove('name', { path: '', domain: '.yourdomain.com' })\n```\n\n_Note: Removing a nonexistent cookie neither raises any exception nor returns any value._\n\n## Namespace conflicts\n\nIf there is any danger of a conflict with the namespace `Cookies`, the `noConflict` method will allow you to define a new namespace and preserve the original one. This is especially useful when running the script on third party sites e.g. as part of a widget or SDK.\n\n```javascript\n// Assign the js-cookie api to a different variable and restore the original \"window.Cookies\"\nvar Cookies2 = Cookies.noConflict()\nCookies2.set('name', 'value')\n```\n\n_Note: The `.noConflict` method is not necessary when using AMD or CommonJS, thus it is not exposed in those environments._\n\n## Encoding\n\nThis project is [RFC 6265](http://tools.ietf.org/html/rfc6265#section-4.1.1) compliant. All special characters that are not allowed in the cookie-name or cookie-value are encoded with each one's UTF-8 Hex equivalent using [percent-encoding](http://en.wikipedia.org/wiki/Percent-encoding). \nThe only character in cookie-name or cookie-value that is allowed and still encoded is the percent `%` character, it is escaped in order to interpret percent input as literal. \nPlease note that the default encoding/decoding strategy is meant to be interoperable [only between cookies that are read/written by js-cookie](https://github.com/js-cookie/js-cookie/pull/200#discussion_r63270778). To override the default encoding/decoding strategy you need to use a [converter](#converters).\n\n_Note: According to [RFC 6265](https://tools.ietf.org/html/rfc6265#section-6.1), your cookies may get deleted if they are too big or there are too many cookies in the same domain, [more details here](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#why-are-my-cookies-being-deleted)._\n\n## Cookie Attributes\n\nCookie attribute defaults can be set globally by creating an instance of the api via `withAttributes()`, or individually for each call to `Cookies.set(...)` by passing a plain object as the last argument. Per-call attributes override the default attributes.\n\n### expires\n\nDefine when the cookie will be removed. Value must be a [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) which will be interpreted as days from time of creation or a [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. If omitted, the cookie becomes a session cookie.\n\nTo create a cookie that expires in less than a day, you can check the [FAQ on the Wiki](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#expire-cookies-in-less-than-a-day).\n\n**Default:** Cookie is removed when the user closes the browser.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { expires: 365 })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### path\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating the path where the cookie is visible.\n\n**Default:** `/`\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.get('name') // => 'value'\nCookies.remove('name', { path: '' })\n```\n\n**Note regarding Internet Explorer:**\n\n> Due to an obscure bug in the underlying WinINET InternetGetCookie implementation, IEs document.cookie will not return a cookie if it was set with a path attribute containing a filename.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means one cannot set a path using `window.location.pathname` in case such pathname contains a filename like so: `/check.html` (or at least, such cookie cannot be read correctly).\n\nIn fact, you should never allow untrusted input to set the cookie attributes or you might be exposed to a [XSS attack](https://github.com/js-cookie/js-cookie/issues/396).\n\n### domain\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating a valid domain where the cookie should be visible. The cookie will also be visible to all subdomains.\n\n**Default:** Cookie is visible only to the domain or subdomain of the page where the cookie was created, except for Internet Explorer (see below).\n\n**Examples:**\n\nAssuming a cookie that is being created on `site.com`:\n\n```javascript\nCookies.set('name', 'value', { domain: 'subdomain.site.com' })\nCookies.get('name') // => undefined (need to read at 'subdomain.site.com')\n```\n\n**Note regarding Internet Explorer default behavior:**\n\n> Q3: If I dont specify a DOMAIN attribute (for) a cookie, IE sends it to all nested subdomains anyway? \n> A: Yes, a cookie set on example.com will be sent to sub2.sub1.example.com. \n> Internet Explorer differs from other browsers in this regard.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means that if you omit the `domain` attribute, it will be visible for a subdomain in IE.\n\n### secure\n\nEither `true` or `false`, indicating if the cookie transmission requires a secure protocol (https).\n\n**Default:** No secure protocol requirement.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { secure: true })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### sameSite\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String), allowing to control whether the browser is sending a cookie along with cross-site requests.\n\nDefault: not set.\n\n**Note that more recent browsers are making \"Lax\" the default value even without specifiying anything here.**\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { sameSite: 'strict' })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### Setting up defaults\n\n```javascript\nconst api = Cookies.withAttributes({ path: '/', domain: '.example.com' })\n```\n\n## Converters\n\n### Read\n\nCreate a new instance of the api that overrides the default decoding implementation. All get methods that rely in a proper decoding to work, such as `Cookies.get()` and `Cookies.get('name')`, will run the given converter for each cookie. The returned value will be used as the cookie value.\n\nExample from reading one of the cookies that can only be decoded using the `escape` function:\n\n```javascript\ndocument.cookie = 'escaped=%u5317'\ndocument.cookie = 'default=%E5%8C%97'\nvar cookies = Cookies.withConverter({\n read: function (value, name) {\n if (name === 'escaped') {\n return unescape(value)\n }\n // Fall back to default for all other cookies\n return Cookies.converter.read(value, name)\n }\n})\ncookies.get('escaped') // 北\ncookies.get('default') // 北\ncookies.get() // { escaped: '北', default: '北' }\n```\n\n### Write\n\nCreate a new instance of the api that overrides the default encoding implementation:\n\n```javascript\nCookies.withConverter({\n write: function (value, name) {\n return value.toUpperCase()\n }\n})\n```\n\n## TypeScript declarations\n\n```\n$ npm i @types/js-cookie\n```\n\n## Server-side integration\n\nCheck out the [Servers Docs](SERVER_SIDE.md)\n\n## Contributing\n\nCheck out the [Contributing Guidelines](CONTRIBUTING.md)\n\n## Security\n\nFor vulnerability reports, send an e-mail to `js-cookie at googlegroups dot com`\n\n## Releasing\n\nWe are using [release-it](https://www.npmjs.com/package/release-it) for automated releasing.\n\nStart a dry run to see what would happen:\n\n```\n$ npm run release minor -- --dry-run\n```\n\nDo a real release (publishes both to npm as well as create a new release on GitHub):\n\n```\n$ npm run release minor\n```\n\n_GitHub releases are created as a draft and need to be published manually!\n(This is so we are able to craft suitable release notes before publishing.)_\n\n## Supporters\n\n<p>\n <a href=\"https://www.browserstack.com/\"><img src=\"https://raw.githubusercontent.com/wiki/js-cookie/js-cookie/Browserstack-logo%402x.png\" width=\"150\"></a>\n</p>\n\nMany thanks to [BrowserStack](https://www.browserstack.com/) for providing unlimited browser testing free of cost.\n\n## Authors\n\n- [Klaus Hartl](https://github.com/carhartl)\n- [Fagner Brack](https://github.com/FagnerMartinsBrack)\n- And awesome [contributors](https://github.com/js-cookie/js-cookie/graphs/contributors)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.0-rc.2","_nodeVersion":"16.4.2","_npmVersion":"7.19.1","dist":{"integrity":"sha512-aQ52DlN3CdFWpKLkYP7l8ZJy5muciLMWxCJ9W/2M3qYNfIvZfqPXLATV/+5DS7dePZIG13+X9oSDa0/Kl2zCiw==","shasum":"8e4edcc1ed76e33ee28ba51d640ed93ea6bfc069","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.0-rc.2.tgz","fileCount":9,"unpackedSize":30611,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7mphCRA9TVsSAnZWagAALI4P/RYfQB3HRVouDouZ2NIo\nRXELYkmFflzu1yaO/OXL+rAPEcpV5Dz+pY14FvrzKq0aVajIPIQSxmIpS0PV\nrqyUTwBz6eye/SFpe/Gr+7n8J2Cw2kHYK3i5R6q8MkN9ytGUqjWpqXCdbTnj\nkFOpM7iSNqjncEp10osJ7ZHXtscED34NcM9TrlniTgS2276xwdrw1Jn4cziM\nfquurszUPfjfafdhNG2TBhaI0wVI7wjOTaBW4sToLmsFj/wMHRy7dcUJM6On\nEpQzInsQrJHtTA3LNY71zsIMt5T8i3i9i+2M0E6dnOHTWLHNrAotUe6vtkSZ\niG9h+NMs/xEYa7WgyjuCPajLyXsOBG6VAa+17B3FTqvQ1uKOOgfgfRTPwNsz\nrkD8e+WKmjnPoQJvTaixu7fIwWlhteHhOWUuIAOFXioC/DoIaW8GvNid+wse\nYkG7zfuvzjPgnw/QShiXlmeKpfzMpO9CduDc2XTDMUu2qa/6Ph6wmFZlr9jd\nizxbqUMAkDyyH+92FaZuVlXP81sAj+lkPKlD+Q4v2MbPLUJGGGTdVy5F+HM9\nvs0gdV7mQiO8gGEggKqYvUfq5Ki/vG1v6PN0Xv7svPRqRyM1YYg+4SZuFQTO\nRovSGdtWfGf2txsY/x+0luH8TWGB/VpA3+qs2Nzw+f5n1qzYK9kG1uuJIize\nDvyK\r\n=hg+a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBoW5yARRjiWH7uRMEpZSszwsY1D1D77Rb30rbQbtKUgAiEAumKBG5pRteFRzybb+OtRj93vmawDKXMg7BRs3WAhLHE="}]},"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"gravatar@fagnermartins.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.0-rc.2_1626237536620_0.42116015297502307"},"_hasShrinkwrap":false},"3.0.0-rc.3":{"name":"js-cookie","version":"3.0.0-rc.3","description":"A simple, lightweight JavaScript API for handling cookies","main":"dist/js.cookie.js","module":"dist/js.cookie.mjs","unpkg":"dist/js.cookie.umd.min.js","jsdelivr":"dist/js.cookie.umd.min.js","exports":{"import":"./dist/js.cookie.mjs","require":"./dist/js.cookie.js"},"directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"browserstack-runner":"^0.9.0","eslint":"^6.8.0","eslint-config-standard":"^14.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-html":"^6.0.0","eslint-plugin-markdown":"^1.0.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^2.1.0","grunt-contrib-nodeunit":"^2.0.0","grunt-contrib-qunit":"^3.1.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^1.18.2","qunit":"^2.9.3","release-it":"^12.4.3","rollup":"^2.0.0","rollup-plugin-filesize":"^6.2.0","rollup-plugin-license":"^2.5.0","rollup-plugin-terser":"^5.1.3","standard":"^14.1.0"},"engines":{"node":">=12"},"gitHead":"5ed1ab610cc4ff53bbbf30b27ef4304de74a3615","readme":"<p align=\"center\">\n <img src=\"https://cloud.githubusercontent.com/assets/835857/14581711/ba623018-0436-11e6-8fce-d2ccd4d379c9.gif\">\n</p>\n\n# JavaScript Cookie [![Build Status](https://travis-ci.org/js-cookie/js-cookie.svg?branch=master)](https://travis-ci.org/js-cookie/js-cookie) [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2)](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Code Climate](https://codeclimate.com/github/js-cookie/js-cookie.svg)](https://codeclimate.com/github/js-cookie/js-cookie) [![npm](https://img.shields.io/github/package-json/v/js-cookie/js-cookie)](https://www.npmjs.com/package/js-cookie) [![size](https://img.shields.io/bundlephobia/minzip/js-cookie/rc)](https://www.npmjs.com/package/js-cookie) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/js-cookie/badge?style=rounded)](https://www.jsdelivr.com/package/npm/js-cookie)\n\nA simple, lightweight JavaScript API for handling cookies\n\n- Works in [all](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) browsers\n- Accepts [any](#encoding) character\n- [Heavily](test) tested\n- No dependency\n- Supports ES modules\n- Supports AMD/CommonJS\n- [RFC 6265](https://tools.ietf.org/html/rfc6265) compliant\n- Useful [Wiki](https://github.com/js-cookie/js-cookie/wiki)\n- Enable [custom encoding/decoding](#converters)\n- **< 800 bytes** gzipped!\n\n**If you're viewing this at https://github.com/js-cookie/js-cookie, you're reading the documentation for the master branch.\n[View documentation for the latest release.](https://github.com/js-cookie/js-cookie/tree/latest#readme)**\n\n## Installation\n\n### NPM\n\nJavaScript Cookie supports [npm](https://www.npmjs.com/package/js-cookie) under the name `js-cookie`.\n\n```\n$ npm i js-cookie\n```\n\nThe npm package has a `module` field pointing to an ES module variant of the library, mainly to provide support for ES module aware bundlers, whereas its `browser` field points to an UMD module for full backward compatibility.\n\n### Direct download\n\nStarting with version 3 [releases](https://github.com/js-cookie/js-cookie/releases) are distributed with two variants of this library, an ES module as well as an UMD module.\n\nNote the different extensions: `.mjs` denotes the ES module, whereas `.js` is the UMD one.\n\nExample for how to load the ES module in a browser:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script type=\"module\">\n import Cookies from '/path/to/js.cookie.mjs'\n\n Cookies.set('foo', 'bar')\n</script>\n```\n\n_Not all browsers support ES modules natively yet_. For this reason the npm package/release provides both the ES and UMD module variant and you may want to include the ES module along with the UMD fallback to account for this:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script nomodule defer src=\"/path/to/js.cookie.js\"></script>\n```\n\nHere we're loading the nomodule script in a deferred fashion, because ES modules are deferred by default. This may not be strictly necessary depending on how you're using the library.\n\n### CDN\n\nAlternatively, include it via [jsDelivr CDN](https://www.jsdelivr.com/package/npm/js-cookie):\n\nUMD:\n\n```html\n<script src=\"//cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.umd.min.js\"></script>\n```\n\nES module:\n\n```html\n<script\n type=\"module\"\n src=\"//cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.mjs\"\n></script>\n```\n\n## ES Module\n\nExample for how to import the ES module from another module:\n\n```javascript\nimport Cookies from 'js-cookie'\n\nCookies.set('foo', 'bar')\n```\n\n## Basic Usage\n\nCreate a cookie, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value')\n```\n\nCreate a cookie that expires 7 days from now, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value', { expires: 7 })\n```\n\nCreate an expiring cookie, valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { expires: 7, path: '' })\n```\n\nRead cookie:\n\n```javascript\nCookies.get('name') // => 'value'\nCookies.get('nothing') // => undefined\n```\n\nRead all visible cookies:\n\n```javascript\nCookies.get() // => { name: 'value' }\n```\n\n_Note: It is not possible to read a particular cookie by passing one of the cookie attributes (which may or may not\nhave been used when writing the cookie in question):_\n\n```javascript\nCookies.get('foo', { domain: 'sub.example.com' }) // `domain` won't have any effect...!\n```\n\nThe cookie with the name `foo` will only be available on `.get()` if it's visible from where the\ncode is called; the domain and/or path attribute will not have an effect when reading.\n\nDelete cookie:\n\n```javascript\nCookies.remove('name')\n```\n\nDelete a cookie valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.remove('name') // fail!\nCookies.remove('name', { path: '' }) // removed!\n```\n\n_IMPORTANT! When deleting a cookie and you're not relying on the [default attributes](#cookie-attributes), you must pass the exact same path and domain attributes that were used to set the cookie:_\n\n```javascript\nCookies.remove('name', { path: '', domain: '.yourdomain.com' })\n```\n\n_Note: Removing a nonexistent cookie neither raises any exception nor returns any value._\n\n## Namespace conflicts\n\nIf there is any danger of a conflict with the namespace `Cookies`, the `noConflict` method will allow you to define a new namespace and preserve the original one. This is especially useful when running the script on third party sites e.g. as part of a widget or SDK.\n\n```javascript\n// Assign the js-cookie api to a different variable and restore the original \"window.Cookies\"\nvar Cookies2 = Cookies.noConflict()\nCookies2.set('name', 'value')\n```\n\n_Note: The `.noConflict` method is not necessary when using AMD or CommonJS, thus it is not exposed in those environments._\n\n## Encoding\n\nThis project is [RFC 6265](http://tools.ietf.org/html/rfc6265#section-4.1.1) compliant. All special characters that are not allowed in the cookie-name or cookie-value are encoded with each one's UTF-8 Hex equivalent using [percent-encoding](http://en.wikipedia.org/wiki/Percent-encoding). \nThe only character in cookie-name or cookie-value that is allowed and still encoded is the percent `%` character, it is escaped in order to interpret percent input as literal. \nPlease note that the default encoding/decoding strategy is meant to be interoperable [only between cookies that are read/written by js-cookie](https://github.com/js-cookie/js-cookie/pull/200#discussion_r63270778). To override the default encoding/decoding strategy you need to use a [converter](#converters).\n\n_Note: According to [RFC 6265](https://tools.ietf.org/html/rfc6265#section-6.1), your cookies may get deleted if they are too big or there are too many cookies in the same domain, [more details here](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#why-are-my-cookies-being-deleted)._\n\n## Cookie Attributes\n\nCookie attribute defaults can be set globally by creating an instance of the api via `withAttributes()`, or individually for each call to `Cookies.set(...)` by passing a plain object as the last argument. Per-call attributes override the default attributes.\n\n### expires\n\nDefine when the cookie will be removed. Value must be a [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) which will be interpreted as days from time of creation or a [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. If omitted, the cookie becomes a session cookie.\n\nTo create a cookie that expires in less than a day, you can check the [FAQ on the Wiki](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#expire-cookies-in-less-than-a-day).\n\n**Default:** Cookie is removed when the user closes the browser.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { expires: 365 })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### path\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating the path where the cookie is visible.\n\n**Default:** `/`\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.get('name') // => 'value'\nCookies.remove('name', { path: '' })\n```\n\n**Note regarding Internet Explorer:**\n\n> Due to an obscure bug in the underlying WinINET InternetGetCookie implementation, IEs document.cookie will not return a cookie if it was set with a path attribute containing a filename.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means one cannot set a path using `window.location.pathname` in case such pathname contains a filename like so: `/check.html` (or at least, such cookie cannot be read correctly).\n\nIn fact, you should never allow untrusted input to set the cookie attributes or you might be exposed to a [XSS attack](https://github.com/js-cookie/js-cookie/issues/396).\n\n### domain\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating a valid domain where the cookie should be visible. The cookie will also be visible to all subdomains.\n\n**Default:** Cookie is visible only to the domain or subdomain of the page where the cookie was created, except for Internet Explorer (see below).\n\n**Examples:**\n\nAssuming a cookie that is being created on `site.com`:\n\n```javascript\nCookies.set('name', 'value', { domain: 'subdomain.site.com' })\nCookies.get('name') // => undefined (need to read at 'subdomain.site.com')\n```\n\n**Note regarding Internet Explorer default behavior:**\n\n> Q3: If I dont specify a DOMAIN attribute (for) a cookie, IE sends it to all nested subdomains anyway? \n> A: Yes, a cookie set on example.com will be sent to sub2.sub1.example.com. \n> Internet Explorer differs from other browsers in this regard.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means that if you omit the `domain` attribute, it will be visible for a subdomain in IE.\n\n### secure\n\nEither `true` or `false`, indicating if the cookie transmission requires a secure protocol (https).\n\n**Default:** No secure protocol requirement.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { secure: true })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### sameSite\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String), allowing to control whether the browser is sending a cookie along with cross-site requests.\n\nDefault: not set.\n\n**Note that more recent browsers are making \"Lax\" the default value even without specifiying anything here.**\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { sameSite: 'strict' })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### Setting up defaults\n\n```javascript\nconst api = Cookies.withAttributes({ path: '/', domain: '.example.com' })\n```\n\n## Converters\n\n### Read\n\nCreate a new instance of the api that overrides the default decoding implementation. All get methods that rely in a proper decoding to work, such as `Cookies.get()` and `Cookies.get('name')`, will run the given converter for each cookie. The returned value will be used as the cookie value.\n\nExample from reading one of the cookies that can only be decoded using the `escape` function:\n\n```javascript\ndocument.cookie = 'escaped=%u5317'\ndocument.cookie = 'default=%E5%8C%97'\nvar cookies = Cookies.withConverter({\n read: function (value, name) {\n if (name === 'escaped') {\n return unescape(value)\n }\n // Fall back to default for all other cookies\n return Cookies.converter.read(value, name)\n }\n})\ncookies.get('escaped') // 北\ncookies.get('default') // 北\ncookies.get() // { escaped: '北', default: '北' }\n```\n\n### Write\n\nCreate a new instance of the api that overrides the default encoding implementation:\n\n```javascript\nCookies.withConverter({\n write: function (value, name) {\n return value.toUpperCase()\n }\n})\n```\n\n## TypeScript declarations\n\n```\n$ npm i @types/js-cookie\n```\n\n## Server-side integration\n\nCheck out the [Servers Docs](SERVER_SIDE.md)\n\n## Contributing\n\nCheck out the [Contributing Guidelines](CONTRIBUTING.md)\n\n## Security\n\nFor vulnerability reports, send an e-mail to `js-cookie at googlegroups dot com`\n\n## Releasing\n\nWe are using [release-it](https://www.npmjs.com/package/release-it) for automated releasing.\n\nStart a dry run to see what would happen:\n\n```\n$ npm run release minor -- --dry-run\n```\n\nDo a real release (publishes both to npm as well as create a new release on GitHub):\n\n```\n$ npm run release minor\n```\n\n_GitHub releases are created as a draft and need to be published manually!\n(This is so we are able to craft suitable release notes before publishing.)_\n\n## Supporters\n\n<p>\n <a href=\"https://www.browserstack.com/\"><img src=\"https://raw.githubusercontent.com/wiki/js-cookie/js-cookie/Browserstack-logo%402x.png\" width=\"150\"></a>\n</p>\n\nMany thanks to [BrowserStack](https://www.browserstack.com/) for providing unlimited browser testing free of cost.\n\n## Authors\n\n- [Klaus Hartl](https://github.com/carhartl)\n- [Fagner Brack](https://github.com/FagnerMartinsBrack)\n- And awesome [contributors](https://github.com/js-cookie/js-cookie/graphs/contributors)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.0-rc.3","_nodeVersion":"16.5.0","_npmVersion":"7.19.1","dist":{"integrity":"sha512-g/kOdVBnDci+TYm0XXDmBDlTHVRFxEVeSaHv6CTgXL7BdjA5BYFkeuo7NjrZQr+1wi5+QcShSJhlft8L8iY07w==","shasum":"3a5030c25fbe204d906822bfa7f359adcd4b1bf8","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.0-rc.3.tgz","fileCount":9,"unpackedSize":30645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7+pwCRA9TVsSAnZWagAALS8P/iy59XZbGVCy5cGD0FTr\nRqnKnZCe5NqYnGRavQFVfXB7B/J8QOBet3rDo2aNYI+8aH6VoxNb9ve6LKJH\n18a2e1x+1ZLDTSlNoMph27rnvVuYioixuxT9tR0Ri2FLa8bp2M/KXZs/WyC6\nB7u/nTQjBzXv6ACvRBtMFw3/ljwOBUIhkeNE7cpkNPkZQD4osDb/F5HDfQyT\nFS0vUT9XBiBaVqj+6S8kZJv4fZmYuBdVqnMzz+V1MLI/NRqbtmFsjJCC+766\nBS7hYq6fdfyWOzbTpQahkOKoYaJrvmBIEyHlIk0WESOtBVLv0dmRfYcvWoHa\nxDdHC85O3JfO16h/scrRrHkYJz0q5znp/3uUuoFjTeUHzMdgjfYA3WlMl9wi\nOhxbd9VdlG14f4Zxz7dWT4/8xwu4M+x4Vb7qTNTJE/hdkWaEtJ1I22rm1+ju\nX0j3dM9LaUFCqD72tTRrjtdVSP8cMO+YboXs14+ppt7gEE+MlVPBc/+kkqWy\n/0992Kl5ksA2ekFnLeVpkX1T/AdVAeAIKotGxVDBQQ83ZIBVZN3JF4jhTUvr\nQE1MLgWwLXn68kevNlm0YP+lozkf+n4DDQS5gOD9cFkXh99LRCAxrBytOthJ\ngc6JYnvawH2W1/+I53zvS79wq+p/Rp3KS9BqYmhi28Yr5W65kQuH06vdcJ2y\nKtB7\r\n=k3wx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpFyvPvVDGv3YvrkctDcApHp4DY5AZ+81v0vUYrj0uvgIhAKME71n/eFrCQVGE6RJyF3lXQcRyQspOp7grNAhhkGvD"}]},"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"gravatar@fagnermartins.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.0-rc.3_1626335855461_0.0720881353070082"},"_hasShrinkwrap":false},"3.0.0-rc.4":{"name":"js-cookie","version":"3.0.0-rc.4","description":"A simple, lightweight JavaScript API for handling cookies","browser":"dist/js.cookie.js","module":"dist/js.cookie.mjs","unpkg":"dist/js.cookie.min.js","jsdelivr":"dist/js.cookie.min.js","exports":{"import":"./dist/js.cookie.mjs","require":"./dist/js.cookie.js"},"directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"browserstack-runner":"^0.9.0","eslint":"^6.8.0","eslint-config-standard":"^14.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-html":"^6.0.0","eslint-plugin-markdown":"^1.0.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^2.1.0","grunt-contrib-nodeunit":"^2.0.0","grunt-contrib-qunit":"^3.1.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^1.18.2","qunit":"^2.9.3","release-it":"^12.4.3","rollup":"^2.0.0","rollup-plugin-filesize":"^6.2.0","rollup-plugin-license":"^2.5.0","rollup-plugin-terser":"^5.1.3","standard":"^14.1.0"},"engines":{"node":">=12"},"readme":"<p align=\"center\">\n <img src=\"https://cloud.githubusercontent.com/assets/835857/14581711/ba623018-0436-11e6-8fce-d2ccd4d379c9.gif\">\n</p>\n\n# JavaScript Cookie [![Build Status](https://travis-ci.org/js-cookie/js-cookie.svg?branch=master)](https://travis-ci.org/js-cookie/js-cookie) [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2)](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Code Climate](https://codeclimate.com/github/js-cookie/js-cookie.svg)](https://codeclimate.com/github/js-cookie/js-cookie) [![npm](https://img.shields.io/github/package-json/v/js-cookie/js-cookie)](https://www.npmjs.com/package/js-cookie) [![size](https://img.shields.io/bundlephobia/minzip/js-cookie/rc)](https://www.npmjs.com/package/js-cookie) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/js-cookie/badge?style=rounded)](https://www.jsdelivr.com/package/npm/js-cookie)\n\nA simple, lightweight JavaScript API for handling cookies\n\n- Works in [all](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) browsers\n- Accepts [any](#encoding) character\n- [Heavily](test) tested\n- No dependency\n- Supports ES modules\n- Supports AMD/CommonJS\n- [RFC 6265](https://tools.ietf.org/html/rfc6265) compliant\n- Useful [Wiki](https://github.com/js-cookie/js-cookie/wiki)\n- Enable [custom encoding/decoding](#converters)\n- **< 800 bytes** gzipped!\n\n**👉👉 If you're viewing this at https://github.com/js-cookie/js-cookie, you're reading the documentation for the master branch.\n[View documentation for the latest release.](https://github.com/js-cookie/js-cookie/tree/latest#readme) 👈👈**\n\n## Installation\n\n### NPM\n\nJavaScript Cookie supports [npm](https://www.npmjs.com/package/js-cookie) under the name `js-cookie`.\n\n```\n$ npm i js-cookie\n```\n\n### Direct download\n\nStarting with version 3 [releases](https://github.com/js-cookie/js-cookie/releases) are distributed with two variants of this library, an ES module as well as an UMD module.\n\nNote the different extensions: `.mjs` denotes the ES module, whereas `.js` is the UMD one.\n\nExample for how to load the ES module in a browser:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script type=\"module\">\n import Cookies from '/path/to/js.cookie.mjs'\n\n Cookies.set('foo', 'bar')\n</script>\n```\n\n_Not all browsers support ES modules natively yet_. For this reason the npm package/release provides both the ES and UMD module variant and you may want to include the ES module along with the UMD fallback to account for this:\n\n```html\n<script type=\"module\" src=\"/path/to/js.cookie.mjs\"></script>\n<script nomodule defer src=\"/path/to/js.cookie.umd.js\"></script>\n```\n\nHere we're loading the nomodule script in a deferred fashion, because ES modules are deferred by default. This may not be strictly necessary depending on how you're using the library.\n\n### CDN\n\nAlternatively, include it via [jsDelivr CDN](https://www.jsdelivr.com/package/npm/js-cookie).\n\n## ES Module\n\nExample for how to import the ES module from another module:\n\n```javascript\nimport Cookies from 'js-cookie'\n\nCookies.set('foo', 'bar')\n```\n\n## Basic Usage\n\nCreate a cookie, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value')\n```\n\nCreate a cookie that expires 7 days from now, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value', { expires: 7 })\n```\n\nCreate an expiring cookie, valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { expires: 7, path: '' })\n```\n\nRead cookie:\n\n```javascript\nCookies.get('name') // => 'value'\nCookies.get('nothing') // => undefined\n```\n\nRead all visible cookies:\n\n```javascript\nCookies.get() // => { name: 'value' }\n```\n\n_Note: It is not possible to read a particular cookie by passing one of the cookie attributes (which may or may not\nhave been used when writing the cookie in question):_\n\n```javascript\nCookies.get('foo', { domain: 'sub.example.com' }) // `domain` won't have any effect...!\n```\n\nThe cookie with the name `foo` will only be available on `.get()` if it's visible from where the\ncode is called; the domain and/or path attribute will not have an effect when reading.\n\nDelete cookie:\n\n```javascript\nCookies.remove('name')\n```\n\nDelete a cookie valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.remove('name') // fail!\nCookies.remove('name', { path: '' }) // removed!\n```\n\n_IMPORTANT! When deleting a cookie and you're not relying on the [default attributes](#cookie-attributes), you must pass the exact same path and domain attributes that were used to set the cookie:_\n\n```javascript\nCookies.remove('name', { path: '', domain: '.yourdomain.com' })\n```\n\n_Note: Removing a nonexistent cookie neither raises any exception nor returns any value._\n\n## Namespace conflicts\n\nIf there is any danger of a conflict with the namespace `Cookies`, the `noConflict` method will allow you to define a new namespace and preserve the original one. This is especially useful when running the script on third party sites e.g. as part of a widget or SDK.\n\n```javascript\n// Assign the js-cookie api to a different variable and restore the original \"window.Cookies\"\nvar Cookies2 = Cookies.noConflict()\nCookies2.set('name', 'value')\n```\n\n_Note: The `.noConflict` method is not necessary when using AMD or CommonJS, thus it is not exposed in those environments._\n\n## Encoding\n\nThis project is [RFC 6265](http://tools.ietf.org/html/rfc6265#section-4.1.1) compliant. All special characters that are not allowed in the cookie-name or cookie-value are encoded with each one's UTF-8 Hex equivalent using [percent-encoding](http://en.wikipedia.org/wiki/Percent-encoding). \nThe only character in cookie-name or cookie-value that is allowed and still encoded is the percent `%` character, it is escaped in order to interpret percent input as literal. \nPlease note that the default encoding/decoding strategy is meant to be interoperable [only between cookies that are read/written by js-cookie](https://github.com/js-cookie/js-cookie/pull/200#discussion_r63270778). To override the default encoding/decoding strategy you need to use a [converter](#converters).\n\n_Note: According to [RFC 6265](https://tools.ietf.org/html/rfc6265#section-6.1), your cookies may get deleted if they are too big or there are too many cookies in the same domain, [more details here](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#why-are-my-cookies-being-deleted)._\n\n## Cookie Attributes\n\nCookie attribute defaults can be set globally by creating an instance of the api via `withAttributes()`, or individually for each call to `Cookies.set(...)` by passing a plain object as the last argument. Per-call attributes override the default attributes.\n\n### expires\n\nDefine when the cookie will be removed. Value must be a [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) which will be interpreted as days from time of creation or a [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. If omitted, the cookie becomes a session cookie.\n\nTo create a cookie that expires in less than a day, you can check the [FAQ on the Wiki](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#expire-cookies-in-less-than-a-day).\n\n**Default:** Cookie is removed when the user closes the browser.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { expires: 365 })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### path\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating the path where the cookie is visible.\n\n**Default:** `/`\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.get('name') // => 'value'\nCookies.remove('name', { path: '' })\n```\n\n**Note regarding Internet Explorer:**\n\n> Due to an obscure bug in the underlying WinINET InternetGetCookie implementation, IEs document.cookie will not return a cookie if it was set with a path attribute containing a filename.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means one cannot set a path using `window.location.pathname` in case such pathname contains a filename like so: `/check.html` (or at least, such cookie cannot be read correctly).\n\nIn fact, you should never allow untrusted input to set the cookie attributes or you might be exposed to a [XSS attack](https://github.com/js-cookie/js-cookie/issues/396).\n\n### domain\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating a valid domain where the cookie should be visible. The cookie will also be visible to all subdomains.\n\n**Default:** Cookie is visible only to the domain or subdomain of the page where the cookie was created, except for Internet Explorer (see below).\n\n**Examples:**\n\nAssuming a cookie that is being created on `site.com`:\n\n```javascript\nCookies.set('name', 'value', { domain: 'subdomain.site.com' })\nCookies.get('name') // => undefined (need to read at 'subdomain.site.com')\n```\n\n**Note regarding Internet Explorer default behavior:**\n\n> Q3: If I dont specify a DOMAIN attribute (for) a cookie, IE sends it to all nested subdomains anyway? \n> A: Yes, a cookie set on example.com will be sent to sub2.sub1.example.com. \n> Internet Explorer differs from other browsers in this regard.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means that if you omit the `domain` attribute, it will be visible for a subdomain in IE.\n\n### secure\n\nEither `true` or `false`, indicating if the cookie transmission requires a secure protocol (https).\n\n**Default:** No secure protocol requirement.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { secure: true })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### sameSite\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String), allowing to control whether the browser is sending a cookie along with cross-site requests.\n\nDefault: not set.\n\n**Note that more recent browsers are making \"Lax\" the default value even without specifiying anything here.**\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { sameSite: 'strict' })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### Setting up defaults\n\n```javascript\nconst api = Cookies.withAttributes({ path: '/', domain: '.example.com' })\n```\n\n## Converters\n\n### Read\n\nCreate a new instance of the api that overrides the default decoding implementation. All get methods that rely in a proper decoding to work, such as `Cookies.get()` and `Cookies.get('name')`, will run the given converter for each cookie. The returned value will be used as the cookie value.\n\nExample from reading one of the cookies that can only be decoded using the `escape` function:\n\n```javascript\ndocument.cookie = 'escaped=%u5317'\ndocument.cookie = 'default=%E5%8C%97'\nvar cookies = Cookies.withConverter({\n read: function (value, name) {\n if (name === 'escaped') {\n return unescape(value)\n }\n // Fall back to default for all other cookies\n return Cookies.converter.read(value, name)\n }\n})\ncookies.get('escaped') // 北\ncookies.get('default') // 北\ncookies.get() // { escaped: '北', default: '北' }\n```\n\n### Write\n\nCreate a new instance of the api that overrides the default encoding implementation:\n\n```javascript\nCookies.withConverter({\n write: function (value, name) {\n return value.toUpperCase()\n }\n})\n```\n\n## TypeScript declarations\n\n```\n$ npm i @types/js-cookie\n```\n\n## Server-side integration\n\nCheck out the [Servers Docs](SERVER_SIDE.md)\n\n## Contributing\n\nCheck out the [Contributing Guidelines](CONTRIBUTING.md)\n\n## Security\n\nFor vulnerability reports, send an e-mail to `js-cookie at googlegroups dot com`\n\n## Releasing\n\nWe are using [release-it](https://www.npmjs.com/package/release-it) for automated releasing.\n\nStart a dry run to see what would happen:\n\n```\n$ npm run release minor -- --dry-run\n```\n\nDo a real release (publishes both to npm as well as create a new release on GitHub):\n\n```\n$ npm run release minor\n```\n\n_GitHub releases are created as a draft and need to be published manually!\n(This is so we are able to craft suitable release notes before publishing.)_\n\n## Supporters\n\n<p>\n <a href=\"https://www.browserstack.com/\"><img src=\"https://raw.githubusercontent.com/wiki/js-cookie/js-cookie/Browserstack-logo%402x.png\" width=\"150\"></a>\n</p>\n\nMany thanks to [BrowserStack](https://www.browserstack.com/) for providing unlimited browser testing free of cost.\n\n## Authors\n\n- [Klaus Hartl](https://github.com/carhartl)\n- [Fagner Brack](https://github.com/FagnerMartinsBrack)\n- And awesome [contributors](https://github.com/js-cookie/js-cookie/graphs/contributors)\n","readmeFilename":"README.md","gitHead":"f973578cc9d0f86ca6499e8734fc2bdbc7326199","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.0-rc.4","_nodeVersion":"16.5.0","_npmVersion":"7.20.0","dist":{"integrity":"sha512-L1zsb2j2Lrr6b8VsMG8kVzrUi1geAzeK9QH2C1K99JGf3BPyTmT1sEChszHs9EtuvPzskH2Tbb7fJx9Jbe11og==","shasum":"ce2b112a8a81b01cad5415be196bd99e5f6ccd00","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.0-rc.4.tgz","fileCount":8,"unpackedSize":26844,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8XNuCRA9TVsSAnZWagAAyFgP/RiH38bkUExLFexYGCUJ\nZ5o+2+7LdNxgYfxb3VeNO9kiqoyBge3fBoAOXJ4BtTDW6S7qGOALH/aK+6vr\nByEj1imlURN1ziOUh3X/axCtNzLybpOiE3mZ/3MWpOD8yJ/V3m48phbbwbxI\n1ESIrwYWbxU0eRz1euOZeWo3y5HoVG3rCMQ6n9ikdjZ9fn5G9WAA/tAA7IRs\n7FYwK2GpP9DZXKhE4nz2khpEaiTFNwX7S+K/p+gTst42Dg04Vox5q3qnj+3t\nTazE5j55yE5gNZQWwNbpaKSXC8HnzDAz/h9zZ7l5OkvsTGyjZR5z6SjVpQXr\nHcWiBOLc+i7I/N/SukVtDDjR2uskwecdJajJ5etyL9xGNAt/rE+6bgBw4AeF\nPhs+UqA1CKAmqFV3z+0QfQHx7JHjmyh7V+HkwhseB02MoYFsnNFr9sNVgx32\n2uXgh748UNYkbQJ91A3RWXlpV1JLqFhb5RtjitURYj/QBkqG32G2umRtYRAN\nRjWVK2/l5Ofb/2A4IHZOlD7n9XUWWV1XN6dAaE/uF40yuuRZYX6Wk2qDJ/j9\nO7o7aK4vlmxXKhFarQpCNUcCB40JfrTjJ/+UAMvMrbLuPQOjMA09JoRO+Jt1\nTsrKBB2zYL+3V5OBPCbvHEliRm5z+6Uk+T6E2Q6V4gFoMjMRErcPCgL7XOzO\nEe5e\r\n=cvfJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEJA9K5epcR4/hfqwD3fIecNCr6ZoSLw8dSOys9i+MQxAiEAm8rC2iuSB73jzFgpHV0jDbEZ/geXm92by6Th1m0NnK0="}]},"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"gravatar@fagnermartins.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.0-rc.4_1626436461907_0.7777518155211616"},"_hasShrinkwrap":false},"3.0.0":{"name":"js-cookie","version":"3.0.0","description":"A simple, lightweight JavaScript API for handling cookies","browser":"dist/js.cookie.js","module":"dist/js.cookie.mjs","unpkg":"dist/js.cookie.min.js","jsdelivr":"dist/js.cookie.min.js","exports":{"import":"./dist/js.cookie.mjs","require":"./dist/js.cookie.js"},"directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"browserstack-runner":"^0.9.0","eslint":"^7.31.0","eslint-config-standard":"^16.0.3","eslint-plugin-promise":"^5.1.0","eslint-plugin-html":"^6.0.0","eslint-plugin-markdown":"^2.2.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-nodeunit":"^3.0.0","grunt-contrib-qunit":"^3.1.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^2.3.2","qunit":"^2.9.3","release-it":"^14.10.0","rollup":"^2.0.0","rollup-plugin-filesize":"^9.1.1","rollup-plugin-license":"^2.5.0","rollup-plugin-terser":"^7.0.2","standard":"^16.0.3"},"engines":{"node":">=12"},"gitHead":"1711eb2f3f5a95b6334771bbf458bbb1510f2ff1","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.0","_nodeVersion":"16.5.0","_npmVersion":"7.20.1","dist":{"integrity":"sha512-oUbbplKuH07/XX2YD2+Q+GMiPpnVXaRz8npE7suhBH9QEkJe2W7mQ6rwuMXHue3fpfcftQwzgyvGzIHyfCSngQ==","shasum":"db1661d5459920ec95aaf186ccf74ceb4a495164","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.0.tgz","fileCount":8,"unpackedSize":27390,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/uq8CRA9TVsSAnZWagAAsmEP/A2pVyA+xgu3bDv73blE\nLBkmsUODzr+W31HhRb4um10ao3RyNgoavOPUIlMB8DCo0AsCm2faWVlJXJmi\naLXfFHMs+BTx+972rGLvmBf7izGWqUK1Vr6HxH28F5g28GXpdByesgM06uR+\nqG5WOZ0Zdx1zbcmCW/pr14tl1jD0oljToAaVCL/3bYpitnl0q8a0XCtwwzLl\nJBnu5vbRGwfxW73Z0o8WKHWd04Ahm/0/UMgsEKikQ3Q2lohtt15cxCwoag7L\nWycJT/Sro/Yn74UfwkO86REhR6hOmy4Cd7GIshlQqGsvcMJACwGdg6f7FfLv\n8IhcWy5R1JWVeA8eCBBIU3ogMQvhBjNjXQIV5FQGPXiKEIs5GDLr1l2MjA4c\nU+GNhkrw/8mmqNId8nbGfeXGZ3g/Xvxzx2KOULkyUNFNo270htWsLmqa5R9E\nefdY1KJj58OU1MDxy2p5V/gFDbtvrkGGZH3GU+/TilfEJO4afnrUQnreVvN9\nuwxxwJ8WUlXiVxNKQnJuhdrTogsIjwbr9RMeIHMw+XkUTzPKQxrFRF5P/zP9\nFErZIL+RWdLyzyKj7+OwFYt7aKs/8PJpyNymRpIew8U1/46aEtWx2A7NjztK\nMmbMOXX0yiIag6IRlRpMQE7nzr/j0bFbH1sa1dzLyCPDZztAv5wz5skIiEde\nTpPj\r\n=wRGd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAg+PrVpKzVSn5j5+lj69ONuxImT1w5UXZIDs/nMDqs8AiEAgTkJQIz2CuTLCz4tUFAGGnLW5gSB+vaTfvSMOxgZ7kk="}]},"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"gravatar@fagnermartins.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.0_1627318972406_0.3867933353270838"},"_hasShrinkwrap":false},"3.0.1":{"name":"js-cookie","version":"3.0.1","description":"A simple, lightweight JavaScript API for handling cookies","browser":"dist/js.cookie.js","module":"dist/js.cookie.mjs","unpkg":"dist/js.cookie.min.js","jsdelivr":"dist/js.cookie.min.js","exports":{".":{"import":"./dist/js.cookie.mjs","require":"./dist/js.cookie.js"},"./package.json":"./package.json"},"directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"browserstack-runner":"^0.9.0","eslint":"^7.31.0","eslint-config-standard":"^16.0.3","eslint-plugin-promise":"^5.1.0","eslint-plugin-html":"^6.0.0","eslint-plugin-markdown":"^2.2.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-nodeunit":"^3.0.0","grunt-contrib-qunit":"^3.1.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^2.3.2","qunit":"^2.9.3","release-it":"^14.10.0","rollup":"^2.0.0","rollup-plugin-filesize":"^9.1.1","rollup-plugin-license":"^2.5.0","rollup-plugin-terser":"^7.0.2","standard":"^16.0.3"},"engines":{"node":">=12"},"gitHead":"2a8d172c0bc70a71201561f05af3a25d2f6c1fbc","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.1","_nodeVersion":"16.8.0","_npmVersion":"7.21.1","dist":{"integrity":"sha512-+0rgsUXZu4ncpPxRL+lNEptWMOWl9etvPHc/koSRp6MPwpRYAhmk0dUG00J4bxVV3r9uUzfo24wW0knS07SKSw==","shasum":"9e39b4c6c2f56563708d7d31f6f5f21873a92414","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.1.tgz","fileCount":8,"unpackedSize":27400,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhL1kWCRA9TVsSAnZWagAA0b4P/1nC94c/hxSny1s7oZib\nCRl22uvJ5LqAPUOWGaMh1PTrnJTh6+fgcHN23Ba+D6W3e2nBnaEksul+gsWy\nYSa2EYmhRBACUvJtwrO+Lt0Jngqq5gvhjMWUVROxQUhhfyunR/vTnJkqCnAX\nkVagdj9RhoLmp4xnWtnwIr69uWDOrUT6hb8Zgvkb6Q5plK3Q8NswCSvnJYbL\n3cdUC1PPVFRp6xTyjgFQt6+zKVuwtQYY0yJn4EjWETS4MdsGi0YHSORdNyMI\nrdlIJ8yh6JbVOV1jscS1ABER2KLnbpyhBMqrQy7fDgNDSG95ZU3sSbFEzDGm\nQfeQ0GXIselzn+ifSm1P2jVLd2IY6cGtNVQV02djyO/D6slXbj/MI+YUKJYb\nBxSgA3EW7TDe1MQVOJUfVCd/NbNgeDiUo0PrfDyaA1/kAmSlqB4SJw7fJs4q\n283tGaUCv/TYDDHYUfixTFTwxJo3OXGbko98lDKv7RPnNFgN9V0UPccs4Ut2\n/okuNUoZmnBfd4fjC4WirQ2/bFt3rvxr0aw9KUXAONypgiOEbjdCm7WUJJ/P\nVvWhlPp2LTwTBwJG3c9AJqmz+n7MP+EV8R2Gmhf/Ue5Xg81DrtZ4WuosBMc0\ncxurqH/BV3O0aysGDNu5sW1K/LUi1nsAAE1tEFz/oa+pt9ie8QAIjPFIBhu+\n0VLx\r\n=JYyb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6HvWT7PkozxJr4PeReSiq1o96MV6MHgzo90ULpK3vJQIgCGoJW85YEeD3YG7GJ921ZnNbsOivkqekT89qcfYPdaY="}]},"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"gravatar@fagnermartins.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.1_1630492950234_0.6583381113604023"},"_hasShrinkwrap":false},"3.0.2":{"name":"js-cookie","version":"3.0.2","description":"A simple, lightweight JavaScript API for handling cookies","browser":"dist/js.cookie.js","module":"dist/js.cookie.mjs","unpkg":"dist/js.cookie.min.js","jsdelivr":"dist/js.cookie.min.js","exports":{".":{"import":"./dist/js.cookie.mjs","require":"./dist/js.cookie.js"},"./package.json":"./package.json"},"directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"@rollup/plugin-terser":"^0.4.0","browserstack-runner":"github:browserstack/browserstack-runner#1e85e559951bdf97ffe2a7c744ee67ca83589fde","eslint":"^7.31.0","eslint-config-standard":"^16.0.3","eslint-plugin-html":"^7.0.0","eslint-plugin-markdown":"^3.0.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-nodeunit":"^5.0.0","grunt-contrib-qunit":"^7.0.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^2.3.2","qunit":"^2.9.3","release-it":"^15.0.0","rollup":"^3.17.2","rollup-plugin-filesize":"^10.0.0","rollup-plugin-license":"^3.0.0","standard":"^17.0.0"},"engines":{"node":">=14","npm":">=9.5.0"},"gitHead":"ee043b4fc341f076de57d1bb6d808b090b43c017","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.2","_nodeVersion":"18.16.0","_npmVersion":"9.6.5","dist":{"integrity":"sha512-5EgA+ev3+vChW7A7t2Oz2Lbr5u/5Pb1ikENtFuYP6GPZpX5Mm84WRlRtD9+9p7myNphw6N24AG/UzrE4HgGLtA==","shasum":"a9a1e8f51b08d3a47caf1a79705ea715dca40384","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.2.tgz","fileCount":8,"unpackedSize":27177,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/js-cookie@3.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0FjlbbTzZdgkYh3kYepoDqIyoL3UUQfr8SM4wCPDEuwIhAPuF6CFcFzMqOAYaACLGtV9sNLdJzTLxphBNq+OpmvNb"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQsTMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrnzw/+OwFee4LAR3AggcT99brQ0KfpAE2p57dCFgA4AsqvrJQ1ZiUB\r\n0OLer8o91vTnMdLP99IUtBohFZT+S3BX1nM4A8oosdfXBomX+k2PxVtJ+reb\r\nhQtuwioSVkMtMEhAtyxLai93mwdbkVXJ/tNTnB2QMP0/FNZUZO4Zb0Tvp22G\r\nFemqgnIWwAnSXWg8c3TnaYuWIoRVq7I2waoxryz28IkB2F1iYJdap5L0hsue\r\nTrliY5ZsPT7rEF2hEPOTqk4VXrcaEGuBke8hHySvsevWkDNYdfVXsnF8DgI+\r\no+ljAqAvzLQc8aD5AiZBt4aRHafm7M9vlP8biSK6S3p1VkoPyA573rjzD4lK\r\ne0XL342or/y2JBqqRjEK86mVBYIwy30UrUAGoEPKzo6jT/F0vRN5JqKO0Wul\r\nMR0UJjIOKNuelaCkgbZhff/CkDzSB0IGkiKp699/ZILYYVIsecF7n4KdAojw\r\nF2bIMUyCRtruQPvO4T8xgPZw5iBRKw3TCKmy0NsNEbs0i3kGrwFiFR6vV4tH\r\nZLS4bf/P+19BR28czwk5ymPp8iv1SwQUfFObsn3M/M7a3mQmiMMmaV6eKgNR\r\npGZgQWVskCeXFuxxuEzW4OB5mStepgrkra1vhcw9bAKwc3sqbB4d8Zls2qAV\r\nIHwJs8Pcpm6O3R7D4EZquo75KS5ZuT9k/8A=\r\n=CgYJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"australia@fagnermartins.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.2_1682097356094_0.6356067908620329"},"_hasShrinkwrap":false,"deprecated":"Attempt at adding package provenance"},"3.0.3":{"name":"js-cookie","version":"3.0.3","description":"A simple, lightweight JavaScript API for handling cookies","browser":"dist/js.cookie.js","module":"dist/js.cookie.mjs","unpkg":"dist/js.cookie.min.js","jsdelivr":"dist/js.cookie.min.js","exports":{".":{"import":"./dist/js.cookie.mjs","require":"./dist/js.cookie.js"},"./package.json":"./package.json"},"directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"@rollup/plugin-terser":"^0.4.0","browserstack-runner":"github:browserstack/browserstack-runner#1e85e559951bdf97ffe2a7c744ee67ca83589fde","eslint":"^7.31.0","eslint-config-standard":"^16.0.3","eslint-plugin-html":"^7.0.0","eslint-plugin-markdown":"^3.0.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-nodeunit":"^5.0.0","grunt-contrib-qunit":"^7.0.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^2.3.2","qunit":"^2.9.3","release-it":"^15.0.0","rollup":"^3.17.2","rollup-plugin-filesize":"^10.0.0","rollup-plugin-license":"^3.0.0","standard":"^17.0.0"},"engines":{"node":">=14","npm":">=9.5.0"},"gitHead":"1074ef899a6d314f601f0bbd3f6a244e4907b1df","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.3","_nodeVersion":"18.16.0","_npmVersion":"9.6.5","dist":{"integrity":"sha512-KtrEg9XXYxmX27AD7/G1N/gSPRb2rPATrOWtRcOnJYZDgD/tFY7j8SAh8xbruXIbK/boz1B0dSAgvGc5mnSJ0w==","shasum":"bbc2f3e0e5164a16c1c083b1d9c45c2be13ee4d2","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.3.tgz","fileCount":8,"unpackedSize":27177,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/js-cookie@3.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCI9tsGYKk9odY3YfZpg1+b9R+CsM86ZPbfI5j6JlE34AIhAMe8yMxDhNffdpx+EqFIghzJ/8xw19a0TTwpLa95e8XP"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQtLdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoNIQ//fmJv+WPRMKjlN1ZNljOOPsappBRvzNBJGOl/Z1qto0EOjFWi\r\nHwDieyGcBU7rk1TIBq74X3V9fH4ISGJncQzYI/TlTjlO+w4ON/SWYSLvQs4G\r\naq2VZwQpz3ARF4HAK55c2sEElm0tLvh17MOcnkoOg81Q8lcGVguUU/xYLT2C\r\ncLIcdfk37VH5mMSZsH9kEPsciWmvKxzbWUdWOeMksYgBVYVWitPC20qdcXbV\r\nLL6hJgvNJ5oudhphEtc7+A7K+9/gHl3Y/XAWwdqEy21h+1oVb3bWKDczV/xj\r\nb0KBtCDVc5GDH7sQcJlM8fWMRMtPYjcq/osIXi8GNdpjGQ7Ue684CTll+BFg\r\nQwzBi/z5aTeKzvhYQBuvkHebxhVqt3sMu0TYG1eN+aTzfALkN02gvByZgfOi\r\nGh7ciGaKGo0hU6VhOG3WA6DYiD4M41317ApBz/jTAeH6qEuauhOPTZ3YH1XJ\r\nDZNAGtXXSwOEFQxi8krNPHmDkcYILbt3PMOGzD8b0xW3y3hUxFNvEABjYN3c\r\nEOK9K2ZcH/aZ5c02EkwfpaE2E5qo3vJR59MVu7Z6T08vOLakDl20MvAtntm6\r\nl5Wif3ys0scd+T12NbsWjnYpz35LhiMfv14Vg3Wl8aUzy82rm5AXJuocUR9B\r\n7HUdk7DVBObZK9GHy7mKmStDjLiZ/B6xjrA=\r\n=oQ35\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"australia@fagnermartins.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.3_1682100957064_0.9213412986685376"},"_hasShrinkwrap":false,"deprecated":"Attempt at adding package provenance"},"3.0.4":{"name":"js-cookie","version":"3.0.4","description":"A simple, lightweight JavaScript API for handling cookies","browser":"dist/js.cookie.js","module":"dist/js.cookie.mjs","unpkg":"dist/js.cookie.min.js","jsdelivr":"dist/js.cookie.min.js","exports":{".":{"import":"./dist/js.cookie.mjs","require":"./dist/js.cookie.js"},"./package.json":"./package.json"},"directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"@rollup/plugin-terser":"^0.4.0","browserstack-runner":"github:browserstack/browserstack-runner#1e85e559951bdf97ffe2a7c744ee67ca83589fde","eslint":"^7.31.0","eslint-config-standard":"^16.0.3","eslint-plugin-html":"^7.0.0","eslint-plugin-markdown":"^3.0.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-nodeunit":"^5.0.0","grunt-contrib-qunit":"^7.0.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^2.3.2","qunit":"^2.9.3","release-it":"^15.0.0","rollup":"^3.17.2","rollup-plugin-filesize":"^10.0.0","rollup-plugin-license":"^3.0.0","standard":"^17.0.0"},"engines":{"node":">=14","npm":">=9.5.0"},"gitHead":"ed914cc29f1a3071612cbd2c8526675ddb219cc0","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.4","_nodeVersion":"18.16.0","_npmVersion":"9.6.5","dist":{"integrity":"sha512-tlu5VGqPFMP5eBefnmszCFZkPXG2n527NRN9XdNtN6FZ5n/0e98TdDm8BOz290OIIsxtXb9XTJjfqE6gVhOHQw==","shasum":"9ae3c5f6eb34d2292d76e0579fabfe7c872e1fae","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.4.tgz","fileCount":8,"unpackedSize":27177,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/js-cookie@3.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFpBvgKRX5bktpfilVPdWfeEw9hGzf94XgfamFnNIM0BAiEAs1zaZi18xZ3XNXItNSw95P77oAQ3c4D8ajuWeG2jsx4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQtemACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPdhAAj7VVFFIJHlESemWJpJfirt8cMxp6If+yzGwbfM5Eo/C/HvWJ\r\nbYnOMCLAS5LH3FwzCDrjGJaCRTMlKecykaR8hYHol6KVaEtNphpumDCIi400\r\n8fWf47y8nX9D9AKiOVgxloQ/gV0u2FWo7d7+/lN/ocOVBgRexGWJy3YN/Mu6\r\n/TrQ5jFXvrd31kWqpLXNGna7pEK+KGbln5D8B+1n6xOtZtEL89gGt4udsJyG\r\nBvJCZQ39T7Pf8+ZsERqnlIKQ+54fV8/zy+sT4MGdt47df5RwaC48UzfYFh6V\r\n1/xFn610Oqq9KRoi/5avTkI8+akaQ8GIMC5HMXybJjyGFf4QxyZPwzvE1gIi\r\nU2NhUbYkQ0PWMoJFCQGnFI9LDDOMMz2VJHZbvlb5bPAau5AUJET7DGatlgE1\r\nofxcWyH734jL078oS7FP+Ll1J1F5oKK9MYEsTNEocI1/DOeMl+kDjToCNwEE\r\nsM6lEd1Kjbw+ZGQtMTxQ7BkkoMqlas0NP7p0tM3Od+fMfPoTAxpE9ds0UV3j\r\nBT/+F6JOci6fwA5vjNL1Y8u9jxObbCc4E+sGZT3J2rMPyDLVkUayuFcCNpwc\r\n47hizRjrJaxXp2vYxa/hvQ/qfseJOEEI2ZkVqGXImtGwDC+kDJB9bY5rDe7e\r\nqeQIj4zilf/nA82QH5/ZX7ol0gkkhoYHZCY=\r\n=iaik\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"australia@fagnermartins.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.4_1682102182220_0.5408324093288646"},"_hasShrinkwrap":false},"3.0.5":{"name":"js-cookie","version":"3.0.5","description":"A simple, lightweight JavaScript API for handling cookies","browser":"dist/js.cookie.js","module":"dist/js.cookie.mjs","unpkg":"dist/js.cookie.min.js","jsdelivr":"dist/js.cookie.min.js","exports":{".":{"import":"./dist/js.cookie.mjs","require":"./dist/js.cookie.js"},"./package.json":"./package.json"},"directories":{"test":"test"},"keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"scripts":{"test":"grunt test","format":"grunt exec:format","dist":"rm -rf dist/* && rollup -c","release":"release-it"},"repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"license":"MIT","devDependencies":{"@rollup/plugin-terser":"^0.4.0","browserstack-runner":"github:browserstack/browserstack-runner#1e85e559951bdf97ffe2a7c744ee67ca83589fde","eslint":"^7.31.0","eslint-config-standard":"^16.0.3","eslint-plugin-html":"^7.0.0","eslint-plugin-markdown":"^3.0.0","grunt":"^1.0.4","grunt-compare-size":"^0.4.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-nodeunit":"^5.0.0","grunt-contrib-qunit":"^7.0.0","grunt-contrib-watch":"^1.1.0","grunt-exec":"^3.0.0","gzip-js":"^0.3.2","prettier":"^2.3.2","qunit":"^2.9.3","release-it":"^15.0.0","rollup":"^3.17.2","rollup-plugin-filesize":"^10.0.0","rollup-plugin-license":"^3.0.0","standard":"^17.0.0"},"engines":{"node":">=14"},"gitHead":"39a0f40ef22eeb64906836b5cf00ea615ebe8739","bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"homepage":"https://github.com/js-cookie/js-cookie#readme","_id":"js-cookie@3.0.5","_nodeVersion":"18.16.0","_npmVersion":"9.6.5","dist":{"integrity":"sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==","shasum":"0b7e2fd0c01552c58ba86e0841f94dc2557dcdbc","tarball":"https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.5.tgz","fileCount":8,"unpackedSize":26158,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/js-cookie@3.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA9/YJduimBXAhaI4/ZZKBiOrGhG5qj5p7wJpcCzZ1VqAiAX1PP1P7c9YQNLwna0rWcQkgnV/ybGTn9yd7Xl6jnqHg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRkqnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyZA/7BAY9uHDCHBeUywNd6bOeWCs2xlY1WFqP+FlFbK5Ppn+O9WUA\r\nQek8OFczM0z80LZbAe0pey/FYnnI+YiI63RUiYoKMqaxoNEhav5iKXhqdDqK\r\nXWaV20KC/D+AG2ynz9tiMcNT/0zBOzZScyMLyGnzDSq3c1SFUikXqYMgkh22\r\nX9I27i9jPvAjTZ9NFxmBFNe3PnmyKfdQn9LZroK6ZO7gE5u+9Wfu5nGddRV0\r\n2LP8BOIuYLfl0XORBsVhjbW8wxeFxXR6YWEDffwdos4kcK270IS7iwvie6kn\r\n3HJDO5zbdjjdBFbYaSapz6osG5CLZqZLpnO52jA+6QHI+31PVRT/XzaDMWS6\r\nkQGq1B1zcTOZKEFtTu4IcB8DUZFIKKs10fsW+4DqcISJ5NlXxOWdnpiOhCKS\r\nDAZZDmhoMUZr6k+98VY2y/nK1hv5aAK0qO4s0K58U7OZiRT9yW2SXXZk5sRj\r\nYnL9vBYnyo44g5H9gPBtYbNRybNlYyHgGqQ9HFinXo69ZDFs0ItJqEFXjxHS\r\nsSdi61L1D5p6zCGJYTKjVV8fbhbuCSId5gdwwiZ2sKfkK5VD43pGVJtbFb1D\r\nQqjFQzsby9pfjiUD8YIUKqrz8BLKs4hoj6vSvXSjjylmx+qZVLvJ3b/GD08L\r\na4YcwjzH0q9SbnupEAYjWE/Be1HyDr011IA=\r\n=H7qw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"carhartl","email":"klaus.hartl@gmail.com"},"maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"australia@fagnermartins.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-cookie_3.0.5_1682328231310_0.3709504852029062"},"_hasShrinkwrap":false}},"readme":"<p align=\"center\">\n <img src=\"https://cloud.githubusercontent.com/assets/835857/14581711/ba623018-0436-11e6-8fce-d2ccd4d379c9.gif\">\n</p>\n\n# JavaScript Cookie [![CI](https://github.com/js-cookie/js-cookie/actions/workflows/ci.yml/badge.svg)](https://github.com/js-cookie/js-cookie/actions/workflows/ci.yml) [![BrowserStack](https://github.com/js-cookie/js-cookie/actions/workflows/browserstack.yml/badge.svg)](https://github.com/js-cookie/js-cookie/actions/workflows/browserstack.yml) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Code Climate](https://codeclimate.com/github/js-cookie/js-cookie.svg)](https://codeclimate.com/github/js-cookie/js-cookie) [![npm](https://img.shields.io/github/package-json/v/js-cookie/js-cookie)](https://www.npmjs.com/package/js-cookie) [![size](https://img.shields.io/bundlephobia/minzip/js-cookie/3)](https://www.npmjs.com/package/js-cookie) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/js-cookie/badge?style=rounded)](https://www.jsdelivr.com/package/npm/js-cookie)\n\nA simple, lightweight JavaScript API for handling cookies\n\n- Works in [all](https://www.browserstack.com/automate/public-build/b3VDaHAxVDg0NDdCRmtUOWg0SlQzK2NsRVhWTjlDQS9qdGJoak1GMzJiVT0tLVhwZHNvdGRoY284YVRrRnI3eU1JTnc9PQ==--5e88ffb3ca116001d7ef2cfb97a4128ac31174c2) browsers\n- Accepts [any](#encoding) character\n- [Heavily](test) tested\n- No dependency\n- Supports ES modules\n- Supports AMD/CommonJS\n- [RFC 6265](https://tools.ietf.org/html/rfc6265) compliant\n- Useful [Wiki](https://github.com/js-cookie/js-cookie/wiki)\n- Enable [custom encoding/decoding](#converters)\n- **< 800 bytes** gzipped!\n\n**👉👉 If you're viewing this at https://github.com/js-cookie/js-cookie, you're reading the documentation for the main branch.\n[View documentation for the latest release.](https://github.com/js-cookie/js-cookie/tree/latest#readme) 👈👈**\n\n## Installation\n\n### NPM\n\nJavaScript Cookie supports [npm](https://www.npmjs.com/package/js-cookie) under the name `js-cookie`.\n\n```bash\nnpm i js-cookie\n```\n\nThe npm package has a `module` field pointing to an ES module variant of the library, mainly to provide support for ES module aware bundlers, whereas its `browser` field points to an UMD module for full backward compatibility.\n\n_Not all browsers support ES modules natively yet_. For this reason the npm package/release provides both the ES and UMD module variant and you may want to include the ES module along with the UMD fallback to account for this:\n\n### CDN\n\nAlternatively, include js-cookie via [jsDelivr CDN](https://www.jsdelivr.com/package/npm/js-cookie).\n\n## Basic Usage\n\nCreate a cookie, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value')\n```\n\nCreate a cookie that expires 7 days from now, valid across the entire site:\n\n```javascript\nCookies.set('name', 'value', { expires: 7 })\n```\n\nCreate an expiring cookie, valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { expires: 7, path: '' })\n```\n\nRead cookie:\n\n```javascript\nCookies.get('name') // => 'value'\nCookies.get('nothing') // => undefined\n```\n\nRead all visible cookies:\n\n```javascript\nCookies.get() // => { name: 'value' }\n```\n\n_Note: It is not possible to read a particular cookie by passing one of the cookie attributes (which may or may not\nhave been used when writing the cookie in question):_\n\n```javascript\nCookies.get('foo', { domain: 'sub.example.com' }) // `domain` won't have any effect...!\n```\n\nThe cookie with the name `foo` will only be available on `.get()` if it's visible from where the\ncode is called; the domain and/or path attribute will not have an effect when reading.\n\nDelete cookie:\n\n```javascript\nCookies.remove('name')\n```\n\nDelete a cookie valid to the path of the current page:\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.remove('name') // fail!\nCookies.remove('name', { path: '' }) // removed!\n```\n\n_IMPORTANT! When deleting a cookie and you're not relying on the [default attributes](#cookie-attributes), you must pass the exact same path and domain attributes that were used to set the cookie:_\n\n```javascript\nCookies.remove('name', { path: '', domain: '.yourdomain.com' })\n```\n\n_Note: Removing a nonexistent cookie neither raises any exception nor returns any value._\n\n## Namespace conflicts\n\nIf there is any danger of a conflict with the namespace `Cookies`, the `noConflict` method will allow you to define a new namespace and preserve the original one. This is especially useful when running the script on third party sites e.g. as part of a widget or SDK.\n\n```javascript\n// Assign the js-cookie api to a different variable and restore the original \"window.Cookies\"\nvar Cookies2 = Cookies.noConflict()\nCookies2.set('name', 'value')\n```\n\n_Note: The `.noConflict` method is not necessary when using AMD or CommonJS, thus it is not exposed in those environments._\n\n## Encoding\n\nThis project is [RFC 6265](http://tools.ietf.org/html/rfc6265#section-4.1.1) compliant. All special characters that are not allowed in the cookie-name or cookie-value are encoded with each one's UTF-8 Hex equivalent using [percent-encoding](http://en.wikipedia.org/wiki/Percent-encoding). \nThe only character in cookie-name or cookie-value that is allowed and still encoded is the percent `%` character, it is escaped in order to interpret percent input as literal. \nPlease note that the default encoding/decoding strategy is meant to be interoperable [only between cookies that are read/written by js-cookie](https://github.com/js-cookie/js-cookie/pull/200#discussion_r63270778). To override the default encoding/decoding strategy you need to use a [converter](#converters).\n\n_Note: According to [RFC 6265](https://tools.ietf.org/html/rfc6265#section-6.1), your cookies may get deleted if they are too big or there are too many cookies in the same domain, [more details here](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#why-are-my-cookies-being-deleted)._\n\n## Cookie Attributes\n\nCookie attribute defaults can be set globally by creating an instance of the api via `withAttributes()`, or individually for each call to `Cookies.set(...)` by passing a plain object as the last argument. Per-call attributes override the default attributes.\n\n### expires\n\nDefine when the cookie will be removed. Value must be a [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) which will be interpreted as days from time of creation or a [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. If omitted, the cookie becomes a session cookie.\n\nTo create a cookie that expires in less than a day, you can check the [FAQ on the Wiki](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#expire-cookies-in-less-than-a-day).\n\n**Default:** Cookie is removed when the user closes the browser.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { expires: 365 })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### path\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating the path where the cookie is visible.\n\n**Default:** `/`\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { path: '' })\nCookies.get('name') // => 'value'\nCookies.remove('name', { path: '' })\n```\n\n**Note regarding Internet Explorer:**\n\n> Due to an obscure bug in the underlying WinINET InternetGetCookie implementation, IEs document.cookie will not return a cookie if it was set with a path attribute containing a filename.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means one cannot set a path using `window.location.pathname` in case such pathname contains a filename like so: `/check.html` (or at least, such cookie cannot be read correctly).\n\nIn fact, you should never allow untrusted input to set the cookie attributes or you might be exposed to a [XSS attack](https://github.com/js-cookie/js-cookie/issues/396).\n\n### domain\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) indicating a valid domain where the cookie should be visible. The cookie will also be visible to all subdomains.\n\n**Default:** Cookie is visible only to the domain or subdomain of the page where the cookie was created, except for Internet Explorer (see below).\n\n**Examples:**\n\nAssuming a cookie that is being created on `site.com`:\n\n```javascript\nCookies.set('name', 'value', { domain: 'subdomain.site.com' })\nCookies.get('name') // => undefined (need to read at 'subdomain.site.com')\n```\n\n**Note regarding Internet Explorer default behavior:**\n\n> Q3: If I dont specify a DOMAIN attribute (for) a cookie, IE sends it to all nested subdomains anyway? \n> A: Yes, a cookie set on example.com will be sent to sub2.sub1.example.com. \n> Internet Explorer differs from other browsers in this regard.\n\n(From [Internet Explorer Cookie Internals (FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx))\n\nThis means that if you omit the `domain` attribute, it will be visible for a subdomain in IE.\n\n### secure\n\nEither `true` or `false`, indicating if the cookie transmission requires a secure protocol (https).\n\n**Default:** No secure protocol requirement.\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { secure: true })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### sameSite\n\nA [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String), allowing to control whether the browser is sending a cookie along with cross-site requests.\n\nDefault: not set.\n\n**Note that more recent browsers are making \"Lax\" the default value even without specifiying anything here.**\n\n**Examples:**\n\n```javascript\nCookies.set('name', 'value', { sameSite: 'strict' })\nCookies.get('name') // => 'value'\nCookies.remove('name')\n```\n\n### Setting up defaults\n\n```javascript\nconst api = Cookies.withAttributes({ path: '/', domain: '.example.com' })\n```\n\n## Converters\n\n### Read\n\nCreate a new instance of the api that overrides the default decoding implementation. All get methods that rely in a proper decoding to work, such as `Cookies.get()` and `Cookies.get('name')`, will run the given converter for each cookie. The returned value will be used as the cookie value.\n\nExample from reading one of the cookies that can only be decoded using the `escape` function:\n\n```javascript\ndocument.cookie = 'escaped=%u5317'\ndocument.cookie = 'default=%E5%8C%97'\nvar cookies = Cookies.withConverter({\n read: function (value, name) {\n if (name === 'escaped') {\n return unescape(value)\n }\n // Fall back to default for all other cookies\n return Cookies.converter.read(value, name)\n }\n})\ncookies.get('escaped') // 北\ncookies.get('default') // 北\ncookies.get() // { escaped: '北', default: '北' }\n```\n\n### Write\n\nCreate a new instance of the api that overrides the default encoding implementation:\n\n```javascript\nCookies.withConverter({\n write: function (value, name) {\n return value.toUpperCase()\n }\n})\n```\n\n## TypeScript declarations\n\n```bash\nnpm i @types/js-cookie\n```\n\n## Server-side integration\n\nCheck out the [Servers Docs](SERVER_SIDE.md)\n\n## Contributing\n\nCheck out the [Contributing Guidelines](CONTRIBUTING.md)\n\n## Security\n\nFor vulnerability reports, send an e-mail to `js-cookie at googlegroups dot com`\n\n## Releasing\n\nReleasing should be done via the `Release` GitHub Actions workflow, so that published packages on npmjs.com have package provenance.\n\nGitHub releases are created as a draft and need to be published manually!\n(This is so we are able to craft suitable release notes before publishing.)\n\n## Supporters\n\n<p>\n <a href=\"https://www.browserstack.com/\"><img src=\"https://raw.githubusercontent.com/wiki/js-cookie/js-cookie/Browserstack-logo%402x.png\" width=\"150\"></a>\n</p>\n\nMany thanks to [BrowserStack](https://www.browserstack.com/) for providing unlimited browser testing free of cost.\n\n## Authors\n\n- [Klaus Hartl](https://github.com/carhartl)\n- [Fagner Brack](https://github.com/FagnerMartinsBrack)\n- And awesome [contributors](https://github.com/js-cookie/js-cookie/graphs/contributors)\n","maintainers":[{"name":"carhartl","email":"klaus.hartl@gmail.com"},{"name":"fagner","email":"australia@fagnermartins.com"}],"time":{"modified":"2023-08-20T09:44:13.419Z","created":"2015-04-15T16:36:50.430Z","1.5.0":"2015-04-15T16:36:50.430Z","1.5.1":"2015-04-24T02:57:23.683Z","2.0.0-pre":"2015-06-08T02:52:41.366Z","2.0.0":"2015-06-22T00:21:17.396Z","2.1.0-pre":"2015-06-22T01:01:57.888Z","2.0.1":"2015-06-22T15:07:22.819Z","2.0.2":"2015-06-27T16:49:29.584Z","2.0.3":"2015-07-20T01:43:17.221Z","2.0.4":"2015-10-17T18:15:53.860Z","2.1.0":"2015-12-31T11:45:26.186Z","2.1.1":"2016-04-16T09:31:41.343Z","2.1.2":"2016-05-29T06:09:00.614Z","2.1.3":"2016-09-02T04:42:19.886Z","2.1.4":"2017-04-03T11:38:34.442Z","2.2.0":"2017-10-28T06:04:48.846Z","2.2.1":"2019-08-06T13:49:13.120Z","3.0.0-beta.0":"2019-10-05T12:41:12.730Z","3.0.0-beta.1":"2019-12-11T10:47:59.971Z","3.0.0-beta.2":"2019-12-12T19:30:35.290Z","3.0.0-beta.3":"2019-12-20T12:41:57.994Z","3.0.0-beta.4":"2020-03-05T11:20:25.612Z","3.0.0-rc.0":"2020-03-11T13:52:53.944Z","3.0.0-rc.1":"2020-09-08T13:10:14.151Z","3.0.0-rc.2":"2021-07-14T04:38:56.769Z","3.0.0-rc.3":"2021-07-15T07:57:36.063Z","3.0.0-rc.4":"2021-07-16T11:54:22.050Z","3.0.0":"2021-07-26T17:02:52.540Z","3.0.1":"2021-09-01T10:42:30.442Z","3.0.2":"2023-04-21T17:15:56.301Z","3.0.3":"2023-04-21T18:15:57.256Z","3.0.4":"2023-04-21T18:36:22.431Z","3.0.5":"2023-04-24T09:23:51.443Z"},"homepage":"https://github.com/js-cookie/js-cookie#readme","repository":{"type":"git","url":"git://github.com/js-cookie/js-cookie.git"},"author":{"name":"Klaus Hartl"},"bugs":{"url":"https://github.com/js-cookie/js-cookie/issues"},"license":"MIT","readmeFilename":"README.md","keywords":["cookie","cookies","browser","amd","commonjs","client","js-cookie","browserify"],"users":{"boton":true,"shakakira":true,"viktorivanov":true,"stany":true,"ibarral":true,"fdeneux":true,"tomekf":true,"lavir":true,"santihbc":true,"amirrustam":true,"markthethomas":true,"mygoare":true,"wangnan0610":true,"sszhu":true,"wkaifang":true,"lmartins":true,"cfleschhut":true,"shahyar":true,"asaupup":true,"rexpan":true,"ridermansb":true,"manhhailua":true,"klimnikita":true,"highlanderkev":true,"redstrike":true,"ericfish007":true,"abuelwafa":true,"ungurys":true,"giuseppe.morelli":true,"panlw":true,"ux_web":true,"cami":true,"zhoutk":true,"kankungyip":true,"itonyyo":true,"jakedalus":true,"rshaw":true,"serge-nikitin":true,"leetwelve":true,"staydan":true,"kael":true,"lvwei":true,"rocket0191":true,"herrbischoff":true,"philligan":true,"shriek":true,"ivan.marquez":true,"kssioalmeida":true,"gaikema":true,"axiang":true,"gerst20051":true,"monjer":true,"yama-dev":true,"nuwaio":true,"jian263994241":true,"carlosvillademor":true,"dwqs":true,"shay-altman":true,"sternelee":true,"shuoshubao":true,"codeinpixel":true,"junjiansyu":true,"sarnsdev":true,"rikstam":true,"nicknaso":true,"foooooops":true,"likkli":true,"willwolffmyren":true,"yichan":true,"fredcorn":true,"jrobinsonc":true,"d3ck":true,"yanghcc":true,"mjasso":true,"xiaobing":true,"fmakareev":true,"shangsinian":true,"jolg42":true,"xiechao06":true,"lius971125":true,"vcboom":true}}