</>PackageGraphPackageGraph

cookie

npmv2.0.1

HTTP server cookie parsing and serialization

Safe to adopt

Yes — cookie scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 71 days ago. 10 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 71 days ago. 10 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 59 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 3 maintainers, and a contained dependency surface.

  • 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 cookie 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.

59 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
node >=22
Module format
ESM only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the cookie README.

import * as cookie from "cookie";

cookie vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
cookiethis page05MIT2 months ago
set-cookie-parser50.2M2MIT1 day ago
cookie-signature01MIT1 day ago

Dependencies

Declared by cookie v2.0.1. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (8)

@borderless/ts-scripts ^0.15.0@size-limit/preset-small-lib ^12.0.0@types/node ^26.0.1@vitest/coverage-v8 ^4.1.9size-limit ^12.0.0top-sites 1.1.225typescript ^6.0.3vitest ^4.1.9

Used by

Popular packages that depend on cookie.

Relationship graph

Dependencies (left) and dependents (right) of cookie.

Frequently installed together

Release history

4 releases in the last two years, typically about 40 days apart.

Recent versions of cookie
VersionPublishedSizeLicense
2.0.1latest2 months ago59 KBMIT
2.0.02 months ago59 KBMIT
1.1.19 months ago59 KBMIT
1.1.09 months ago59 KBMIT
1.0.21 year ago45 KBMIT
1.0.11 year ago45 KBMIT
1.0.01 year ago44 KBMIT
0.7.21 year ago23 KBMIT
0.7.11 year ago23 KBMIT
0.7.01 year ago23 KBMIT
0.6.02 years ago23 KBMIT
0.5.04 years ago23 KBMIT
0.4.24 years ago19 KBMIT
0.4.16 years ago18 KBMIT
0.4.07 years ago17 KBMIT

Overview

cookie is an npm package that hTTP server cookie parsing and serialization. It has 5 known dependents in the graph. The latest version is 2.0.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need hTTP server cookie parsing and serialization and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).

Cons

  • No bundled TypeScript types (may require a separate @types package).

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

Maintainers

Keywords

Funding

Frequently asked questions

Should I use cookie?

Yes — cookie scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 71 days ago. 10 releases in the last 2 years.

How do I install cookie?

Run `npm install cookie` to add cookie to your npm project.

What license is cookie released under?

cookie is distributed under the MIT license.

How popular is cookie?

npm does not publish download counts. Within PackageGraph's crawl, 5 known packages depend on cookie.

Is cookie still maintained?

The most recent release of cookie (v2.0.1) was published 2 months ago.

Does cookie run install scripts?

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