Socket
Socket
Sign inDemoInstall

cookie-es

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cookie-es

<!-- automd:badges bundlejs -->


Version published
Weekly downloads
1.2M
increased by6.27%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 25 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc