{"_id":"@cjkihl/cookies","_rev":"9-4a5eca71d0ecd3b099433e9196ab07d2","name":"@cjkihl/cookies","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.1":{"name":"@cjkihl/cookies","version":"1.0.1","keywords":["cookies","cookie","typescript","standard-schema","validation","zod","valibot","arktype","bun","node","browser","server"],"author":{"name":"@cjkihl"},"license":"MIT","_id":"@cjkihl/cookies@1.0.1","maintainers":[{"name":"caki0915","email":"carljohan.kihl@gmail.com"}],"homepage":"https://github.com/cjkihl/cjkihl#readme","bugs":{"url":"https://github.com/cjkihl/cjkihl/issues"},"dist":{"shasum":"636acb0b57ff41ba1eaa0d26134acc05857e6055","tarball":"https://registry.npmjs.org/@cjkihl/cookies/-/cookies-1.0.1.tgz","fileCount":7,"integrity":"sha512-6PAm6qyViIxoBhGvtATbJS/mJSgiBmU1amecVoWCyit8Tp41EJdiaWg3APDYZIH032vVZhaiDAxNMyu1UKblPw==","signatures":[{"sig":"MEYCIQCIvnScxNh3goU8KR4966FT7upRp4ROcV1rVAxH3kULSAIhAJE5MNAfe8pfMvSyFYOSUNuXD8YkSO/ls7CiYlPul/qo","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23816},"main":"./dist/output/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{"./types":{"types":"./dist/types.pub.d.ts","default":"./dist/output/types.pub.js"},"./utils":{"types":"./dist/utils.pub.d.ts","default":"./dist/output/utils.pub.js"},"./client":{"types":"./dist/client.pub.d.ts","default":"./dist/output/client.pub.js"},"./server":{"types":"./dist/server.pub.d.ts","default":"./dist/output/server.pub.js"}},"funding":{"url":"https://github.com/sponsors/cjkihl","type":"github"},"gitHead":"8981fc1c944b1fc4fc27ca0ec6c0f8e57f82ef33","scripts":{"test":"bun test","build":"tsc && bun ../create-exports/create-exports.bin.ts","type-check":"tsc --noEmit"},"_npmUser":{"name":"caki0915","actor":{"name":"caki0915","type":"user","email":"carljohan.kihl@gmail.com"},"email":"carljohan.kihl@gmail.com"},"repository":{"url":"git+https://github.com/cjkihl/cjkihl.git","type":"git"},"_npmVersion":"10.8.2","description":"A minimal, type-safe cookies library for Bun/Node.js with Standard Schema validation support","directories":{},"_nodeVersion":"20.19.2","dependencies":{"@standard-schema/spec":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.25.67","bun-types":"latest","typescript":"^5.8.3"},"peerDependencies":{"typescript":">=5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cookies_1.0.1_1750906231767_0.9566751847994353","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@cjkihl/cookies","version":"1.0.2","keywords":["cookies","cookie","typescript","standard-schema","validation","zod","valibot","arktype","bun","node","browser","server"],"author":{"name":"@cjkihl"},"license":"MIT","_id":"@cjkihl/cookies@1.0.2","maintainers":[{"name":"caki0915","email":"carljohan.kihl@gmail.com"}],"homepage":"https://github.com/cjkihl/cjkihl#readme","bugs":{"url":"https://github.com/cjkihl/cjkihl/issues"},"dist":{"shasum":"193daecdd67050b8abe1c872de1310f6823aba77","tarball":"https://registry.npmjs.org/@cjkihl/cookies/-/cookies-1.0.2.tgz","fileCount":7,"integrity":"sha512-K6yfAhi7x/2VHwEljYkHdgt/swkor2Ui6ZwlMPR1toN86E/HValav2au/ZxNLX9PL2FpmwNJwdQyF/mHYywDpw==","signatures":[{"sig":"MEYCIQCK8gyszepeLHTB8k3Xx0ki3j/Em6oG1yQNvqlPqebXVgIhAOJdtuLa85i+EYumnCdNpSvkPY5t3U5fmW72niZ/stDa","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23815},"main":"./dist/output/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{"./types":{"types":"./dist/types.pub.d.ts","default":"./dist/output/types.pub.js"},"./utils":{"types":"./dist/utils.pub.d.ts","default":"./dist/output/utils.pub.js"},"./client":{"types":"./dist/client.pub.d.ts","default":"./dist/output/client.pub.js"},"./server":{"types":"./dist/server.pub.d.ts","default":"./dist/output/server.pub.js"}},"funding":{"url":"https://github.com/sponsors/cjkihl","type":"github"},"gitHead":"fdcc76fe342906b61da8fa1afe776b8ea4c41db4","scripts":{"test":"bun test","build":"tsc && bun ../create-exports/create-exports.bin.ts","type-check":"tsc --noEmit"},"_npmUser":{"name":"caki0915","email":"carljohan.kihl@gmail.com"},"repository":{"url":"git+https://github.com/cjkihl/cjkihl.git","type":"git"},"_npmVersion":"10.8.2","description":"A minimal, type-safe cookies library for Bun/Node.js with Standard Schema validation support","directories":{},"_nodeVersion":"20.19.5","dependencies":{"@standard-schema/spec":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.0.17","bun-types":"^1.0.0","typescript":"^5.9.2"},"peerDependencies":{"typescript":">=5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cookies_1.0.2_1757664534712_0.45197913064047945","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@cjkihl/cookies","version":"1.0.3","keywords":["cookies","cookie","typescript","standard-schema","validation","zod","valibot","arktype","bun","node","browser","server"],"author":{"name":"@cjkihl"},"license":"MIT","_id":"@cjkihl/cookies@1.0.3","maintainers":[{"name":"caki0915","email":"carljohan.kihl@gmail.com"}],"homepage":"https://github.com/cjkihl/cjkihl#readme","bugs":{"url":"https://github.com/cjkihl/cjkihl/issues"},"dist":{"shasum":"9373a314d191a76e2f490be5f39ced04f5aea9b8","tarball":"https://registry.npmjs.org/@cjkihl/cookies/-/cookies-1.0.3.tgz","fileCount":3,"integrity":"sha512-qvcqXcRNo+SfDWPV1tSc5VMsawX8dLfWQrCmUjTJFWZZpDC/Ivg6bTtWoJzvIeg5YseG/NKmH80wxhhcCl41ig==","signatures":[{"sig":"MEQCICfDF/uvHK5yxhC1Ly63Ursej9OtKwCA+VU83LE9tzMnAiAD8GAPSgmezIPwFMNv1U6hgAHcKW2yQ1UCywS9b4yFcw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49861},"type":"module","engines":{"node":">=18.0.0"},"exports":{"./types":{"types":"./dist/types.pub.d.ts","default":"./dist/output/types.pub.js"},"./utils":{"types":"./dist/utils.pub.d.ts","default":"./dist/output/utils.pub.js"},"./client":{"types":"./dist/client.pub.d.ts","default":"./dist/output/client.pub.js"},"./server":{"types":"./dist/server.pub.d.ts","default":"./dist/output/server.pub.js"}},"funding":{"url":"https://github.com/sponsors/cjkihl","type":"github"},"gitHead":"05e7f6e5ebac8c7e7a590da7d8da90307ec2448d","scripts":{"test":"bun test","build":"tsc && bun ../create-exports/create-exports.bin.ts","type-check":"tsc --noEmit"},"_npmUser":{"name":"caki0915","email":"carljohan.kihl@gmail.com"},"repository":{"url":"git+https://github.com/cjkihl/cjkihl.git","type":"git"},"_npmVersion":"10.8.2","description":"A minimal, type-safe cookies library for Bun/Node.js with Standard Schema validation support","directories":{},"_nodeVersion":"20.19.5","dependencies":{"@standard-schema/spec":"^1.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cookies_1.0.3_1759657004478_0.878297007810712","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@cjkihl/cookies","version":"1.0.4","keywords":["cookies","cookie","typescript","standard-schema","validation","zod","valibot","arktype","bun","node","browser","server"],"author":{"name":"@cjkihl"},"license":"MIT","_id":"@cjkihl/cookies@1.0.4","maintainers":[{"name":"caki0915","email":"carljohan.kihl@gmail.com"}],"homepage":"https://github.com/cjkihl/cjkihl#readme","bugs":{"url":"https://github.com/cjkihl/cjkihl/issues"},"dist":{"shasum":"bf4dc4986bec3959efb9a0eb78d34a16fc66616b","tarball":"https://registry.npmjs.org/@cjkihl/cookies/-/cookies-1.0.4.tgz","fileCount":19,"integrity":"sha512-YIlSqNIsaFipvmYfjf2ScekCUTBWSwN79afvNUaiY/k/rLc7yvgDdkhhKelDUfnVqNPdsqQhGS4/9xNagL+ZDA==","signatures":[{"sig":"MEQCIH64Ez53iqWK3fH1+aNPdDrw2cNyV+2XUF37J9DTr76GAiAoy2uyGuLvB/JlnnlPKh7Xyk91V2LhNjj2ghSoO/rWnA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":86512},"type":"module","engines":{"node":">=18.0.0"},"exports":{"./types":{"types":"./dist/types/types.pub.d.ts","default":"./dist/output/types.pub.js"},"./utils":{"types":"./dist/types/utils.pub.d.ts","default":"./dist/output/utils.pub.js"},"./client":{"types":"./dist/types/client.pub.d.ts","default":"./dist/output/client.pub.js"},"./server":{"types":"./dist/types/server.pub.d.ts","default":"./dist/output/server.pub.js"}},"funding":{"url":"https://github.com/sponsors/cjkihl","type":"github"},"gitHead":"e58165e17ab746244a327fe88ee0f246cb600d03","scripts":{"test":"bun test","build":"tsc && bun ../create-exports/create-exports.bin.ts","type-check":"tsc --noEmit"},"_npmUser":{"name":"caki0915","email":"carljohan.kihl@gmail.com"},"repository":{"url":"git+https://github.com/cjkihl/cjkihl.git","type":"git"},"_npmVersion":"10.8.2","description":"A minimal, type-safe cookies library for Bun/Node.js with Standard Schema validation support","directories":{},"_nodeVersion":"20.19.5","dependencies":{"@standard-schema/spec":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.1.11"},"_npmOperationalInternal":{"tmp":"tmp/cookies_1.0.4_1759727540326_0.022889000420790895","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@cjkihl/cookies","version":"1.0.5","keywords":["cookies","cookie","typescript","standard-schema","validation","zod","valibot","arktype","bun","node","browser","server"],"author":{"name":"@cjkihl"},"license":"MIT","_id":"@cjkihl/cookies@1.0.5","maintainers":[{"name":"caki0915","email":"carljohan.kihl@gmail.com"}],"homepage":"https://github.com/cjkihl/cjkihl#readme","bugs":{"url":"https://github.com/cjkihl/cjkihl/issues"},"dist":{"shasum":"5618a35191f9b78bf86767853575340d36ba1842","tarball":"https://registry.npmjs.org/@cjkihl/cookies/-/cookies-1.0.5.tgz","fileCount":19,"integrity":"sha512-cvirBKJKJxVffd5+P8hDlaOtJZL4QyZ/fj+deekgah1jLFMvI4kJa1PdB/lgb/MItW5DrmrbSq6S3xzUzyzQ1Q==","signatures":[{"sig":"MEUCIGM5NLRP+YTe3AQovn9Xsw4xUjfqJFJaZUHMuXo20P0+AiEApD5I47QyVgoMeg1RcA0IJR24y0Cog0fiLJgw0Mi9KPA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":85283},"type":"module","engines":{"node":">=18.0.0"},"exports":{"./types":{"types":"./dist/types/types.pub.d.ts","default":"./dist/output/types.pub.js"},"./utils":{"types":"./dist/types/utils.pub.d.ts","default":"./dist/output/utils.pub.js"},"./client":{"types":"./dist/types/client.pub.d.ts","default":"./dist/output/client.pub.js"},"./server":{"types":"./dist/types/server.pub.d.ts","default":"./dist/output/server.pub.js"}},"funding":{"url":"https://github.com/sponsors/cjkihl","type":"github"},"gitHead":"ad7f37cd403448c435de83a8201a65b1db53a7e0","scripts":{"test":"bun test","build":"tsc && bun ../create-exports/create-exports.bin.ts","type-check":"tsc --noEmit"},"_npmUser":{"name":"caki0915","email":"carljohan.kihl@gmail.com"},"repository":{"url":"git+https://github.com/cjkihl/cjkihl.git","type":"git"},"_npmVersion":"10.8.2","description":"A minimal, type-safe cookies library for Bun/Node.js with Standard Schema validation support","directories":{},"_nodeVersion":"20.19.5","dependencies":{"@standard-schema/spec":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.1.12","@types/node":"^24.7.2"},"_npmOperationalInternal":{"tmp":"tmp/cookies_1.0.5_1760588551418_0.7296698336752914","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@cjkihl/cookies","version":"1.0.6","keywords":["cookies","cookie","typescript","standard-schema","validation","zod","valibot","arktype","bun","node","browser","server"],"author":{"name":"@cjkihl"},"license":"MIT","_id":"@cjkihl/cookies@1.0.6","maintainers":[{"name":"caki0915","email":"carljohan.kihl@gmail.com"}],"homepage":"https://github.com/cjkihl/cjkihl#readme","bugs":{"url":"https://github.com/cjkihl/cjkihl/issues"},"dist":{"shasum":"a341bb9cef99dc0e75373eb9416e1d8a46a55c3c","tarball":"https://registry.npmjs.org/@cjkihl/cookies/-/cookies-1.0.6.tgz","fileCount":19,"integrity":"sha512-dJuDHZP3lvIGHXXWQq1/zh0+IpXAuq7UmqyYY/xAi/sRn+f1OvODuAcMpcOp1IdRVZo8yvuaYAlBkM1N7imduA==","signatures":[{"sig":"MEUCIFQ+ye7MO6dn5rJtn7J92pUBUXoHPCz/OoXzShe5Ab1+AiEAzv8aMbL8MqTNZ6igKR0s/Vs0D4OxbtRWK2AvWPglRks=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":85305},"type":"module","engines":{"node":">=18.0.0"},"exports":{"./types":{"types":"./dist/types/types.pub.d.ts","default":"./dist/output/types.pub.js"},"./utils":{"types":"./dist/types/utils.pub.d.ts","default":"./dist/output/utils.pub.js"},"./client":{"types":"./dist/types/client.pub.d.ts","default":"./dist/output/client.pub.js"},"./server":{"types":"./dist/types/server.pub.d.ts","default":"./dist/output/server.pub.js"}},"funding":{"url":"https://github.com/sponsors/cjkihl","type":"github"},"gitHead":"f8bb778a375828ca340a0050f1fedf103a8207b2","scripts":{"test":"bun test","build":"tsc && bun ../create-exports/create-exports.bin.ts","type-check":"tsc --noEmit"},"_npmUser":{"name":"caki0915","email":"carljohan.kihl@gmail.com"},"repository":{"url":"git+https://github.com/cjkihl/cjkihl.git","type":"git"},"_npmVersion":"10.8.2","description":"A minimal, type-safe cookies library for Bun/Node.js with Standard Schema validation support","directories":{},"_nodeVersion":"20.19.5","dependencies":{"@standard-schema/spec":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.1.12","@types/node":"^24.9.2"},"_npmOperationalInternal":{"tmp":"tmp/cookies_1.0.6_1761814056978_0.8646751462664399","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@cjkihl/cookies","version":"1.0.7","keywords":["cookies","cookie","typescript","standard-schema","validation","zod","valibot","arktype","bun","node","browser","server"],"author":{"name":"@cjkihl"},"license":"MIT","_id":"@cjkihl/cookies@1.0.7","maintainers":[{"name":"caki0915","email":"carljohan.kihl@gmail.com"}],"homepage":"https://github.com/cjkihl/cjkihl#readme","bugs":{"url":"https://github.com/cjkihl/cjkihl/issues"},"dist":{"shasum":"55f25f491e7c3deb0cc06f916642dc085df70e75","tarball":"https://registry.npmjs.org/@cjkihl/cookies/-/cookies-1.0.7.tgz","fileCount":31,"integrity":"sha512-eyCPzeNX52or3gXfsrzMbCbIFjL8VRz8+Neqocw76ju7ma5/zfBX0g4UUz9f13lD9ywmo9RtOvmDU9vecIYdkg==","signatures":[{"sig":"MEYCIQCEI9pKAdWdiBt4zWsWwlrNmeY+GCN2Atn+onXvr8UzRQIhAOT7+b6tqaGTnSqN7StOYUFkiSha15oFr0GGHZsFjsDA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":155195},"type":"module","engines":{"node":">=18.0.0"},"exports":{"./types":{"types":"./dist/types/types.pub.d.ts","default":"./dist/output/types.pub.js"},"./utils":{"types":"./dist/types/utils.pub.d.ts","default":"./dist/output/utils.pub.js"},"./client":{"types":"./dist/types/client.pub.d.ts","default":"./dist/output/client.pub.js"},"./server":{"types":"./dist/types/server.pub.d.ts","default":"./dist/output/server.pub.js"}},"funding":{"url":"https://github.com/sponsors/cjkihl","type":"github"},"gitHead":"ccb175103dafb13d59dc25dffb0970eac0293fa7","scripts":{"test":"bun test","build":"tsc && bun ../create-exports/create-exports.bin.ts","type-check":"tsc --noEmit"},"_npmUser":{"name":"caki0915","email":"carljohan.kihl@gmail.com"},"repository":{"url":"git+https://github.com/cjkihl/cjkihl.git","type":"git"},"_npmVersion":"10.8.2","description":"A minimal, type-safe cookies library for Bun/Node.js with Standard Schema validation support","directories":{},"_nodeVersion":"20.19.5","dependencies":{"@standard-schema/spec":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.1.12","@types/bun":"*","@types/node":"^24.9.2"},"_npmOperationalInternal":{"tmp":"tmp/cookies_1.0.7_1762656893753_0.6349271881169367","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@cjkihl/cookies","version":"1.0.8","keywords":["cookies","cookie","typescript","standard-schema","validation","zod","valibot","arktype","bun","node","browser","server"],"author":{"name":"@cjkihl"},"license":"MIT","_id":"@cjkihl/cookies@1.0.8","maintainers":[{"name":"caki0915","email":"carljohan.kihl@gmail.com"}],"homepage":"https://github.com/cjkihl/cjkihl#readme","bugs":{"url":"https://github.com/cjkihl/cjkihl/issues"},"dist":{"shasum":"1a5ac8aa3680d0803dc3dbca01232e8fd649d16d","tarball":"https://registry.npmjs.org/@cjkihl/cookies/-/cookies-1.0.8.tgz","fileCount":31,"integrity":"sha512-jfPRv2rU/a8WN+BjVK7szQanbNCyXxsyjwHGOFisDiHKsglhKLgWsOzKeK/YpjcMhTx4N6BxD54cDBDyfZQi1A==","signatures":[{"sig":"MEUCIQCi9oYRg3QrTxbXg4YFN3YC2QmQrPvfJ10oajTQO/SfJQIgHKEw98oE8p8wN3NeWvMN5ru3Ko/KafH3bsAcjnoJIRY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":169319},"type":"module","engines":{"node":">=18.0.0"},"exports":{"./types":{"types":"./dist/types/types.pub.d.ts","default":"./dist/output/types.pub.js"},"./utils":{"types":"./dist/types/utils.pub.d.ts","default":"./dist/output/utils.pub.js"},"./client":{"types":"./dist/types/client.pub.d.ts","default":"./dist/output/client.pub.js"},"./server":{"types":"./dist/types/server.pub.d.ts","default":"./dist/output/server.pub.js"}},"funding":{"url":"https://github.com/sponsors/cjkihl","type":"github"},"gitHead":"6d3a24180ee3a3f9606cf4044f53ab28fdba9924","scripts":{"test":"bun test","build":"tsgo && bun ../create-exports/create-exports.bin.ts","type-check":"tsgo --noEmit"},"_npmUser":{"name":"caki0915","email":"carljohan.kihl@gmail.com"},"repository":{"url":"git+https://github.com/cjkihl/cjkihl.git","type":"git"},"_npmVersion":"10.8.2","description":"A minimal, type-safe cookies library for Bun/Node.js with Standard Schema validation support","directories":{},"_nodeVersion":"24.3.0","dependencies":{"@standard-schema/spec":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.3.6","@types/bun":"1.3.9","@types/node":"^24.10.13"},"_npmOperationalInternal":{"tmp":"tmp/cookies_1.0.8_1771202690295_0.7493148870401705","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@cjkihl/cookies","version":"1.0.9","description":"A minimal, type-safe cookies library for Bun/Node.js with Standard Schema validation support","keywords":["cookies","cookie","typescript","standard-schema","validation","zod","valibot","arktype","bun","node","browser","server"],"homepage":"https://github.com/cjkihl/cjkihl#readme","bugs":{"url":"https://github.com/cjkihl/cjkihl/issues"},"repository":{"type":"git","url":"git+https://github.com/cjkihl/cjkihl.git"},"funding":{"type":"github","url":"https://github.com/sponsors/cjkihl"},"license":"MIT","author":{"name":"@cjkihl"},"type":"module","exports":{"./client":{"types":"./dist/types/client.pub.d.ts","default":"./dist/output/client.pub.js"},"./server":{"types":"./dist/types/server.pub.d.ts","default":"./dist/output/server.pub.js"},"./types":{"types":"./dist/types/types.pub.d.ts","default":"./dist/output/types.pub.js"},"./utils":{"types":"./dist/types/utils.pub.d.ts","default":"./dist/output/utils.pub.js"}},"scripts":{"build":"tsgo && bun ../create-exports/create-exports.bin.ts","test":"bun test","type-check":"tsgo --noEmit"},"dependencies":{"@standard-schema/spec":"^1.1.0"},"devDependencies":{"@types/bun":"1.3.9","@types/node":"^24.10.13","zod":"^4.3.6"},"engines":{"node":">=18.0.0"},"publishConfig":{"access":"public","provenance":true},"gitHead":"95f2db961d1a037811b7170d21c967881361d91a","_id":"@cjkihl/cookies@1.0.9","_nodeVersion":"24.3.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-dKqQ0guk4OGb8L/8R0XTh8KUhgUHPUo3ZXyj8UGv51GlExrxDGnffEq3zLKbustOEz7YHrHwWe5Uacue3Ou/kw==","shasum":"1167cfc39e9dc115cbb466ba3cdb172440b7058f","tarball":"https://registry.npmjs.org/@cjkihl/cookies/-/cookies-1.0.9.tgz","fileCount":31,"unpackedSize":169392,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cjkihl%2fcookies@1.0.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICDudkNcraE11Mheb25Obe3xbitmh5kGhX9EvCv6usIaAiEAyHpvE1kdPoOuzqzfl2dvsv+YNDwUiPN4EHV+vSfIC78="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8333559f-bd39-415e-b48c-c7efa66be4ff"}},"directories":{},"maintainers":[{"name":"caki0915","email":"carljohan.kihl@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cookies_1.0.9_1774857664121_0.9177407569801825"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-26T02:50:31.670Z","modified":"2026-03-30T08:01:04.610Z","1.0.1":"2025-06-26T02:50:31.934Z","1.0.2":"2025-09-12T08:08:54.895Z","1.0.3":"2025-10-05T09:36:44.694Z","1.0.4":"2025-10-06T05:12:20.543Z","1.0.5":"2025-10-16T04:22:31.595Z","1.0.6":"2025-10-30T08:47:37.172Z","1.0.7":"2025-11-09T02:54:53.934Z","1.0.8":"2026-02-16T00:44:50.454Z","1.0.9":"2026-03-30T08:01:04.272Z"},"bugs":{"url":"https://github.com/cjkihl/cjkihl/issues"},"author":{"name":"@cjkihl"},"license":"MIT","homepage":"https://github.com/cjkihl/cjkihl#readme","keywords":["cookies","cookie","typescript","standard-schema","validation","zod","valibot","arktype","bun","node","browser","server"],"repository":{"type":"git","url":"git+https://github.com/cjkihl/cjkihl.git"},"description":"A minimal, type-safe cookies library for Bun/Node.js with Standard Schema validation support","maintainers":[{"name":"caki0915","email":"carljohan.kihl@gmail.com"}],"readme":"# @cjkihl/cookies\n\nA minimal, type-safe cookies library for Bun/Node.js with Standard Schema validation support.\n\n## Features\n\n- 🔒 **Type-safe**: Full TypeScript support with generics\n- 🎯 **Standard Schema compatible**: Works with any Standard Schema library (Zod, Valibot, ArkType, etc.)\n- 🌐 **Universal**: Works in both browser and server environments\n- ⚡ **Minimal**: Lightweight with minimal dependencies\n- 🔧 **Flexible**: Support for all cookie attributes and options\n\n## Installation\n\n```bash\nbun add @cjkihl/cookies\n```\n\nThe library uses the official `@standard-schema/spec` package for Standard Schema types, which is included as a dependency.\n\n## Quick Start\n\n### Root Import (All Functions)\n\nYou can import all functions from the root package:\n\n```typescript\nimport { \n  // Client functions\n  getClientCookies, setClientCookie, getClientCookie, deleteClientCookie,\n  // Server functions  \n  getServerCookies, setServerCookie, getServerCookie, deleteServerCookie,\n  // Types and utilities\n  type Cookie, type CookieOptions\n} from \"@cjkihl/cookies\";\n```\n\n### Client-side (Browser)\n\n```typescript\nimport { getCookies, setCookie, getCookie, deleteCookie } from \"@cjkihl/cookies/client\";\n\n// Get all cookies\nconst cookies = getCookies();\n\n// Get a specific cookie\nconst userCookie = getCookie(\"user\");\n\n// Set a simple cookie\nsetCookie(\"theme\", { value: \"dark\" });\n\n// Set a cookie with options\nsetCookie(\"session\", {\n  value: \"abc123\",\n  expires: new Date(\"2024-12-31\"),\n  path: \"/\",\n  secure: true,\n  httpOnly: false,\n  sameSite: \"Strict\"\n});\n\n// Delete a cookie\ndeleteCookie(\"old-cookie\");\n```\n\n### Server-side\n\n```typescript\nimport { getCookies, setCookie, getCookie, deleteCookie } from \"@cjkihl/cookies/server\";\n\n// Get cookies from request\nconst cookies = getCookies(request);\n\n// Get a specific cookie\nconst userCookie = getCookie(request, \"user\");\n\n// Set cookie on response\nsetCookie(response, \"session\", {\n  value: \"abc123\",\n  expires: new Date(\"2024-12-31\"),\n  path: \"/\",\n  secure: true,\n  httpOnly: true,\n  sameSite: \"Strict\"\n});\n\n// Delete a cookie\ndeleteCookie(response, \"old-cookie\");\n```\n\n## Standard Schema Validation\n\nThe library supports validation using any Standard Schema compatible library.\n\n### With Zod\n\n```typescript\nimport { z } from \"zod\";\nimport { getCookies, setCookie } from \"@cjkihl/cookies/client\";\n\n// Create a schema\nconst userSchema = z.object({\n  id: z.number(),\n  name: z.string(),\n  email: z.string().email()\n});\n\n// Get cookies with validation\nconst cookies = getCookies(userSchema);\n// cookies.user.value will be typed as { id: number; name: string; email: string }\n\n// Set cookie with validation\nsetCookie(\"user\", {\n  value: { id: 1, name: \"John\", email: \"john@example.com\" },\n  schema: userSchema\n});\n```\n\n### With Valibot\n\n```typescript\nimport { object, number, string, email } from \"valibot\";\nimport { getCookies, setCookie } from \"@cjkihl/cookies/client\";\n\n// Create a schema\nconst userSchema = object({\n  id: number(),\n  name: string(),\n  email: string([email()])\n});\n\n// Get cookies with validation\nconst cookies = getCookies(userSchema);\n\n// Set cookie with validation\nsetCookie(\"user\", {\n  value: { id: 1, name: \"John\", email: \"john@example.com\" },\n  schema: userSchema\n});\n```\n\n### With ArkType\n\n```typescript\nimport { type } from \"arktype\";\nimport { getCookies, setCookie } from \"@cjkihl/cookies/client\";\n\n// Create a schema\nconst userSchema = type({\n  id: \"number\",\n  name: \"string\",\n  email: \"string\"\n});\n\n// Get cookies with validation\nconst cookies = getCookies(userSchema);\n\n// Set cookie with validation\nsetCookie(\"user\", {\n  value: { id: 1, name: \"John\", email: \"john@example.com\" },\n  schema: userSchema\n});\n```\n\n## API Reference\n\n### Client Functions\n\n#### `getCookies<T = string>(schema?: StandardSchemaV1<T>): CookieRecord<T>`\n\nGet all cookies from `document.cookie`.\n\n#### `getCookie<T = string>(key: string, schema?: StandardSchemaV1<T>): Cookie<T> | undefined`\n\nGet a specific cookie by key.\n\n#### `setCookie<T = string>(key: string, options: CookieOptions<T>): void`\n\nSet a cookie with full options.\n\n#### `setCookieSimple<T = string>(key: string, value: T, options?: Omit<CookieOptions<T>, \"value\">): void`\n\nSet a cookie with a simple value and optional options.\n\n#### `deleteCookie(key: string, options?: { path?: string; domain?: string }): void`\n\nDelete a cookie by setting an expired date.\n\n### Server Functions\n\n#### `getCookies<T = string>(req: Request | Headers, schema?: StandardSchemaV1<T>): CookieRecord<T>`\n\nGet all cookies from request headers.\n\n#### `getCookie<T = string>(req: Request | Headers, key: string, schema?: StandardSchemaV1<T>): Cookie<T> | undefined`\n\nGet a specific cookie from request headers.\n\n#### `setCookie<T = string>(res: Response | Headers, key: string, options: CookieOptions<T>): void`\n\nSet a cookie on response headers.\n\n#### `setCookieSimple<T = string>(res: Response | Headers, key: string, value: T, options?: Omit<CookieOptions<T>, \"value\">): void`\n\nSet a cookie with a simple value on response headers.\n\n#### `deleteCookie(res: Response | Headers, key: string, options?: { path?: string; domain?: string }): void`\n\nDelete a cookie on response headers.\n\n### Types\n\n#### `Cookie<T = string>`\n\n```typescript\ninterface Cookie<T = string> {\n  value: T;\n  expires?: Date;\n  maxAge?: number;\n  domain?: string;\n  path?: string;\n  secure: boolean;\n  httpOnly: boolean;\n  sameSite?: \"Strict\" | \"Lax\" | \"None\";\n}\n```\n\n#### `CookieOptions<T = string>`\n\n```typescript\ninterface CookieOptions<T = string> {\n  value: T;\n  expires?: Date;\n  maxAge?: number;\n  domain?: string;\n  path?: string;\n  secure?: boolean;\n  httpOnly?: boolean;\n  sameSite?: \"Strict\" | \"Lax\" | \"None\";\n  schema?: StandardSchemaV1<T>;\n}\n```\n\n## Examples\n\n### Basic Cookie Management\n\n```typescript\nimport { getCookies, setCookie, deleteCookie } from \"@cjkihl/cookies/client\";\n\n// Set a simple cookie\nsetCookie(\"theme\", { value: \"dark\" });\n\n// Set a cookie with expiration\nsetCookie(\"session\", {\n  value: \"abc123\",\n  expires: new Date(Date.now() + 24 * 60 * 60 * 1000), // 24 hours\n  path: \"/\",\n  secure: true\n});\n\n// Get all cookies\nconst cookies = getCookies();\nconsole.log(cookies.theme?.value); // \"dark\"\n\n// Delete a cookie\ndeleteCookie(\"old-session\", { path: \"/\" });\n```\n\n### Validation with Zod\n\n```typescript\nimport { z } from \"zod\";\nimport { getCookie, setCookie } from \"@cjkihl/cookies/client\";\n\n// Define schemas\nconst themeSchema = z.enum([\"light\", \"dark\"]);\nconst userSchema = z.object({\n  id: z.number(),\n  name: z.string().min(1),\n  preferences: z.object({\n    theme: themeSchema,\n    notifications: z.boolean()\n  })\n});\n\n// Set validated cookies\nsetCookie(\"theme\", { value: \"dark\", schema: themeSchema });\nsetCookie(\"user\", {\n  value: {\n    id: 1,\n    name: \"John Doe\",\n    preferences: { theme: \"dark\", notifications: true }\n  },\n  schema: userSchema\n});\n\n// Get validated cookies\nconst theme = getCookie(\"theme\", themeSchema);\nconst user = getCookie(\"user\", userSchema);\n\n// TypeScript knows the exact types\nconsole.log(theme?.value); // \"light\" | \"dark\"\nconsole.log(user?.value.preferences.theme); // \"light\" | \"dark\"\n```\n\n### Server-side Usage\n\n```typescript\nimport { getCookies, setCookie } from \"@cjkihl/cookies/server\";\n\n// Handle incoming request\nasync function handleRequest(request: Request) {\n  // Get cookies from request\n  const cookies = getCookies(request);\n  \n  // Process request...\n  const response = new Response(\"Hello World\");\n  \n  // Set cookies on response\n  setCookie(response, \"session\", {\n    value: \"new-session-id\",\n    httpOnly: true,\n    secure: true,\n    sameSite: \"Strict\"\n  });\n  \n  return response;\n}\n```\n\n## Testing\n\nRun the test suite:\n\n```bash\nbun test\n```\n\n## Requirements\n\n- Node.js >= 18.0.0 or Bun\n- TypeScript >= 5.0.0 (for type definitions)\n\n## License\n\nMIT ","readmeFilename":"README.md"}