🚀 DAY 2 OF LAUNCH WEEK: Unify Your Security Stack with Socket Basics.Learn more
Socket
Book a DemoInstallSign in
Socket

set-cookie-parser-es

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

set-cookie-parser-es

ESM port of set-cookie-parser with bundled types.

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

npm version Codecov bundle

ESM build of set-cookie-parser with bundled types. Accepts a single set-cookie header value or an array of set-cookie header.

☝🏻 Unlike the original "set-cookie-parser":

  • this library doesn't accept Node.js response object, in order to be framework/runtime agnostic.
  • splitCookiesString accepts set-cookie string only.

Usage

Install:

# npm
npm i set-cookie-parser-es

# yarn
yarn add set-cookie-parser-es

Import:

// ESM
import { parse, parseString, splitCookiesString } from 'set-cookie-parser-es'

// CommonJS
const { parse, parseString, splitCookiesString } = require('set-cookie-parser-es')

License

MIT

Keywords

cookie

FAQs

Package last updated on 26 Dec 2022

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