cookie-es
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

🍪 cookie-es

npm version npm downloads bundle size install size codecov

ESM ready Cookie and Set-Cookie parser and serializer based on cookie and set-cookie-parser with built-in types.

Usage

Install:

# ✨ Auto-detect (npm, yarn, pnpm, bun, deno)
npx nypm install cookie-es

Import:

ESM (Node.js, Bun, Deno)

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

CDN (Deno, Bun and Browsers)

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

License

MIT

Based on jshttp/cookie (Roman Shtylman and hristopher Wilson) and nfriedly/set-cookie-parser (Nathan Friedly).

/cookie-es/

    Package Sidebar

    Install

    npm i cookie-es

    Weekly Downloads

    2,112,498

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    20.7 kB

    Total Files

    5

    Last publish

    Collaborators

    • pi0