</>PackageGraphPackageGraph

set-cookie-parser

npmv3.1.2TypeScript

Parses set-cookie headers into objects

Safe to adopt

Yes — set-cookie-parser scores well across adoption, maintenance, weight, supply chain, and licensing. 50.2M downloads per week and 2 known dependents. Last published 62 days ago. 7 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    50.2M downloads per week and 2 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 62 days ago. 7 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 27 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding set-cookie-parser to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

27 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the set-cookie-parser README.

import * as http from 'node:http';
import { parseSetCookie } from 'set-cookie-parser';
// or const { parseSetCookie } = require('set-cookie-parser');

http.get('http://example.com', function(res) {
  const cookies = parseSetCookie(res, {
    decodeValues: true  // default: true
  });

  cookies.forEach(console.log);
}

set-cookie-parser vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
set-cookie-parserthis page50.2M2MIT2 months ago
bytes03MIT1 day ago
cookie05MIT1 day ago
rgb2hex01MIT1 day ago
commander451.1M11MIT1 day ago
postcss249.3M7MIT1 day ago

Dependencies

Declared by set-cookie-parser v3.1.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (9)

eslint ^8.57.0eslint-config-prettier ^9.1.0eslint-plugin-prettier ^5.1.3husky ^9.1.7mocha ^11.7.5prettier ^3.2.5pretty-quick ^4.0.0sinon ^21.0.3tsd ^0.33.0

Used by

Popular packages that depend on set-cookie-parser.

Relationship graph

Dependencies (left) and dependents (right) of set-cookie-parser.

headers-polyfilllight-my-requestset-cookie-parser
set-cookie-parser dependencies dependents

Frequently installed together

Release history

6 releases in the last two years, typically about 67 days apart.

Recent versions of set-cookie-parser
VersionPublishedSizeLicense
3.1.2latest2 months ago27 KBMIT
3.1.12 months ago27 KBMIT
3.1.05 months ago27 KBMIT
3.0.18 months ago23 KBMIT
3.0.08 months ago16 KBMIT
2.7.210 months ago16 KBMIT
2.7.11 year ago16 KBMIT
2.7.02 years ago16 KBMIT
2.6.03 years ago15 KBMIT
2.5.14 years ago15 KBMIT
2.5.04 years ago14 KBMIT
2.4.85 years ago14 KBMIT
2.4.75 years ago13 KBMIT
2.4.66 years ago13 KBMIT
2.4.56 years ago13 KBMIT

Overview

set-cookie-parser is an npm package that parses set-cookie headers into objects. It is extremely widely used, with about 50.2M downloads per week and 2 known dependents in the graph. The latest version is 3.1.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need parses set-cookie headers into objects and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (50.2M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use set-cookie-parser?

Yes — set-cookie-parser scores well across adoption, maintenance, weight, supply chain, and licensing. 50.2M downloads per week and 2 known dependents. Last published 62 days ago. 7 releases in the last 2 years.

How do I install set-cookie-parser?

Run `npm install set-cookie-parser` to add set-cookie-parser to your npm project.

What license is set-cookie-parser released under?

set-cookie-parser is distributed under the MIT license.

How popular is set-cookie-parser?

set-cookie-parser has approximately 50,183,993 downloads per week and 2 known dependent packages.

Is set-cookie-parser still maintained?

The most recent release of set-cookie-parser (v3.1.2) was published 2 months ago.

Does set-cookie-parser run install scripts?

No. set-cookie-parser does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.