set-cookie-parser
npmv3.1.2TypeScriptParses 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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.
Dependencies
Declared by set-cookie-parser v3.1.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (9)
Used by
Popular packages that depend on set-cookie-parser.
Relationship graph
Dependencies (left) and dependents (right) of set-cookie-parser.
Frequently installed together
An HTTP/1.1 client, written from scratch for Node.js
An AST-based pattern checker for JavaScript.
Fast, unopinionated, minimalist web framework
Next generation testing framework powered by Vite
A library to create readable "multipart/form-data" streams. Can be used to submit forms and file uploads to other web applications.
🔎 A simple, tiny and lightweight benchmarking library!
A JavaScript implementation of many web standards
TypeScript definitions for node
TypeScript definitions for set-cookie-parser
HTTP server cookie parsing and serialization
A small utility for creating warnings and emitting them.
Build and manage the AJV instances for the fastify framework
Release history
6 releases in the last two years, typically about 67 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.1.2latest | 2 months ago | 27 KB | MIT |
| 3.1.1 | 2 months ago | 27 KB | MIT |
| 3.1.0 | 5 months ago | 27 KB | MIT |
| 3.0.1 | 8 months ago | 23 KB | MIT |
| 3.0.0 | 8 months ago | 16 KB | MIT |
| 2.7.2 | 10 months ago | 16 KB | MIT |
| 2.7.1 | 1 year ago | 16 KB | MIT |
| 2.7.0 | 2 years ago | 16 KB | MIT |
| 2.6.0 | 3 years ago | 15 KB | MIT |
| 2.5.1 | 4 years ago | 15 KB | MIT |
| 2.5.0 | 4 years ago | 14 KB | MIT |
| 2.4.8 | 5 years ago | 14 KB | MIT |
| 2.4.7 | 5 years ago | 13 KB | MIT |
| 2.4.6 | 6 years ago | 13 KB | MIT |
| 2.4.5 | 6 years ago | 13 KB | MIT |
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
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.