{"_id":"cookie-cutter","_rev":"1029868","name":"cookie-cutter","description":"Browserify-compatible module to get and set cookies in the browser","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"substack","email":"substack@gmail.com"},{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}],"time":{"modified":"2024-09-10T16:45:01.000Z","created":"2011-09-28T06:56:47.113Z","0.2.0":"2016-06-29T11:13:18.929Z","0.1.1":"2014-01-05T10:01:15.609Z","0.1.0":"2013-05-28T07:41:54.114Z","0.0.0":"2011-09-28T06:56:47.113Z"},"users":{"dsblv":true,"ruanyu1":true,"abraham":true},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"repository":{"type":"git","url":"git://github.com/substack/cookie-cutter.git"},"versions":{"0.2.0":{"name":"cookie-cutter","description":"Browserify-compatible module to get and set cookies in the browser","version":"0.2.0","repository":{"type":"git","url":"git://github.com/substack/cookie-cutter.git"},"main":"index.js","keywords":["cookie","browser","browserify"],"license":"MIT","author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"gitHead":"bcd1d59c5ab121a54a5bf1b37036ca9cf9c5d2e6","bugs":{"url":"https://github.com/substack/cookie-cutter/issues"},"homepage":"https://github.com/substack/cookie-cutter#readme","_id":"cookie-cutter@0.2.0","scripts":{},"_shasum":"5988f598b68c060a00ec8524ad6e6aa193e72244","_from":".","_npmVersion":"2.15.1","_nodeVersion":"5.9.1","_npmUser":{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"},"dist":{"shasum":"5988f598b68c060a00ec8524ad6e6aa193e72244","tarball":"http://registry-npm.ywwl.com/cookie-cutter/download/cookie-cutter-0.2.0.tgz","integrity":"sha512-eVyP5liHjDMCmGlp2OD+qoin5TJlwUBRjBKN8R2yJ3ePf8xqUtqmRP6e36ipe0nBm2lTiertH6iHPOptNQzAEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHmCQI5XOufHCT1cw3pBbLajOdinGcD4QVlDGx+GKgRAIgT6vBzTlHJHC7A2f814ZmlJzc+vwb1wudowhGkXHD2I0="}],"size":1708,"noattachment":false,"key":"/cookie-cutter/-/cookie-cutter-0.2.0.tgz"},"maintainers":[{"name":"substack","email":"substack@gmail.com"},{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cookie-cutter-0.2.0.tgz_1467198797747_0.5531482228543609"},"directories":{},"publish_time":1467198798929,"_cnpm_publish_time":1467198798929},"0.1.1":{"name":"cookie-cutter","description":"Browserify-compatible module to get and set cookies in the browser","version":"0.1.1","repository":{"type":"git","url":"git://github.com/substack/cookie-cutter.git"},"main":"index.js","keywords":["cookie","browser","browserify"],"license":"MIT","author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"bugs":{"url":"https://github.com/substack/cookie-cutter/issues"},"homepage":"https://github.com/substack/cookie-cutter","_id":"cookie-cutter@0.1.1","dist":{"shasum":"4503fd9dd35ec7000ce945ef9cca31d75fe9ccea","tarball":"http://registry-npm.ywwl.com/cookie-cutter/download/cookie-cutter-0.1.1.tgz","integrity":"sha512-ZYfibNuFIgGNUy8durb76zj0zLGv1JHtAM43JvuS/ezRO8Hx3yW5hec6PVuqYH8AYB6FlT0W230LlTrWEJocZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCU8fc3MJXl7DcDs9/XzjRvIPAfQJ4RF5z5nsiCccDINQIgNP3ibk72L/AkB5MHVbQy9zSA9neSc3Rkqs7VVInDDhk="}],"size":1707,"noattachment":false,"key":"/cookie-cutter/-/cookie-cutter-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"directories":{},"publish_time":1388916075609,"_cnpm_publish_time":1388916075609},"0.1.0":{"name":"cookie-cutter","description":"Browserify-compatible module to get and set cookies in the browser","version":"0.1.0","repository":{"type":"git","url":"git://github.com/substack/cookie-cutter.git"},"main":"index.js","keywords":["cookie","browser","browserify"],"license":"MIT","author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"_id":"cookie-cutter@0.1.0","dist":{"shasum":"46b492fd748f88928c1102a85c204eddad5d3355","tarball":"http://registry-npm.ywwl.com/cookie-cutter/download/cookie-cutter-0.1.0.tgz","integrity":"sha512-DpbedUMYmoXxoA0OT/ZH+e673bSpZtROmn2imQsjCCiCptnGe7MSs2qom3PnFfviznEheAChpK5AZX4ux6NnHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEuIQoEgeNiIQG2A+hwAFGq9bMTm33yn8l0fZW9pRD2SAiEAggc3THPUl9Mq0LDoU/4H4ZnNhIgkvkvzM9VDdJcYBrE="}],"size":1668,"noattachment":false,"key":"/cookie-cutter/-/cookie-cutter-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"directories":{},"publish_time":1369726914114,"_cnpm_publish_time":1369726914114},"0.0.0":{"name":"cookie-cutter","description":"Browserify-compatible module to get and set cookies in the browser","version":"0.0.0","repository":{"type":"git","url":"git://github.com/substack/cookie-cutter.git"},"main":"index.js","keywords":["cookie","browser","browserify"],"directories":{"lib":"."},"devDependencies":{"browserify":"1.5.x"},"license":"MIT","author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"_npmJsonOpts":{"file":"/home/substack/.npm/cookie-cutter/0.0.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"cookie-cutter@0.0.0","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.30","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"77e871c764a65a383025f4d82514ee0878cf3ea6","tarball":"http://registry-npm.ywwl.com/cookie-cutter/download/cookie-cutter-0.0.0.tgz","integrity":"sha512-DPXkA/8G79JmAcLw/1AjWG79EzLQuQcygfL4sJsPa0HlgTqNwDaAKjPhXZQUL2C7kpJH3xLBLAkIBkFdPfht+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGwrmarXw2jHI8nWaYZUcVSNc1CG5EHIQCls+x6RjrhjAiBEv0vyrcfM98vm0idYqkUa+nyM2QqHazsGZoC1kXbXRA=="}],"size":1645,"noattachment":false,"key":"/cookie-cutter/-/cookie-cutter-0.0.0.tgz"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"publish_time":1317193007113,"_cnpm_publish_time":1317193007113}},"readme":"cookie-cutter\n=============\n\nSet and get cookies in the browser or in node with `document`.\n\nIn your browser code with [browserify](http://github.com/substack/node-browserify):\n\n````javascript\nvar cookie = require('cookie-cutter');\nvar times = parseInt(cookie.get('times'), 10) || 0;\ncookie.set('times', times + 1);\n````\n\nand `times` will increment every time the page is reloaded.\n\nmethods\n=======\n\n````javascript\nvar cookie = require('cookie-cutter');\n````\n\ncookie(document)\n----------------\n\nReturn a new cookie object with `.get()` and `.set()` operating on `document`.\n\n`document.cookie` should be a non-referentially transparent setter/getter combo\nlike the DOM's variant where assignment with optional path and expiry creates a\nnew cookie in the getter as a key=value pair.\n\ncookie.get(key)\n---------------\n\nReturn the cookie value for `key`.\n\ncookie.set(key, value, opts={})\n-------------------------------\n\nSet the cookie at `key` to `value` with optional parameters `expires` and `path`.\n\nTo unset a cookie, use a date in the past, ex: ```{ expires: new Date(0) }```\n\n\ninstall\n=======\n\nWith [npm](http://npmjs.org) do:\n\n    npm install cookie-cutter\n\nlicense\n=======\n\nMIT/X11\n","_attachments":{},"homepage":"https://github.com/substack/cookie-cutter#readme","bugs":{"url":"https://github.com/substack/cookie-cutter/issues"},"license":"MIT"}