Skip to content
/ cookie-es Public
forked from unjs/cookie-es

🍪 Cookie and Set-Cookie parser and serializer

License

Notifications You must be signed in to change notification settings

jpsc/cookie-es

 
 

Repository files navigation

🍪 cookie-es

npm version npm downloads bundle size

🍪 Cookie and Set-Cookie parser and serializer based on cookie and set-cookie-parser with dual ESM/CJS exports and bundled types. 🎁

Usage

Install:

# ✨ Auto-detect
npx nypm install cookie-es

# npm
npm install cookie-es

# yarn
yarn add cookie-es

# pnpm
pnpm install cookie-es

# bun
bun install cookie-es

Import:

ESM (Node.js, Bun)

import {
  parse,
  serialize,
  parseSetCookie,
  splitSetCookieString,
} from "cookie-es";

CommonJS (Legacy Node.js)

const {
  parse,
  serialize,
  parseSetCookie,
  splitSetCookieString,
} = require("cookie-es");

CDN (Deno, Bun and Browsers)

import {
  parse,
  serialize,
  parseSetCookie,
  splitSetCookieString,
} from "https://esm.sh/cookie-es";

License

MIT

About

🍪 Cookie and Set-Cookie parser and serializer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.6%
  • JavaScript 0.4%