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

1.0.5 • Public • Published

set-cookie-parser-es

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

Package Sidebar

Install

npm i set-cookie-parser-es

Weekly Downloads

301

Version

1.0.5

License

MIT

Unpacked Size

12.5 kB

Total Files

6

Last publish

Collaborators

  • batenkovt