cookies
npmv0.9.1Cookies, optionally signed using Keygrip.
Adopt with care
cookies is usable, with caveats. Last published 982 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- DMaintenance: grade D, Poor — a real concern.
Last published 982 days ago.
- AWeight: grade A, Excellent.
Pulls in 3 transitive packages, about 64 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 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 cookies 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.
Licenses in the dependency tree
Every license you inherit by installing cookies, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >= 0.8
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the cookies README.
var http = require('http')
var Cookies = require('cookies')
// Optionally define keys to sign cookie values
// to prevent client tampering
var keys = ['keyboard cat']
var server = http.createServer(function (req, res) {
// Create a cookies object
var cookies = new Cookies(req, res, { keys: keys })
// Get a cookie
var lastVisit = cookies.get('LastVisit', { signed: true })
Dependencies
Declared by cookies v0.9.1. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (2)
Dev (6)
Used by
Popular packages that depend on cookies.
Relationship graph
Dependencies (left) and dependents (right) of cookies.
Frequently installed together
Create and parse HTTP Content-Type header
The ultimate javascript content-type utility.
Create HTTP error objects
Encode a URL to a percent-encoded form, excluding already-encoded sequences
Infer the content-type of a request.
Manipulate the HTTP Vary header
Execute a callback when a request closes, finishes, or errors
compose Koa middleware
Create and parse Content-Disposition header
delegate methods and accessors to another property
HTTP response freshness testing
Higher-level content negotiation
Release history
No releases in the last two years, typically about 96 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.9.1latest | 2 years ago | 22 KB | MIT |
| 0.9.0 | 2 years ago | 22 KB | MIT |
| 0.8.0 | 7 years ago | 19 KB | MIT |
| 0.7.3 | 7 years ago | 19 KB | MIT |
| 0.7.2 | 8 years ago | 19 KB | MIT |
| 0.7.1 | 9 years ago | — | MIT |
| 0.7.0 | 9 years ago | — | MIT |
| 0.6.2 | 9 years ago | — | MIT |
| 0.6.1 | 10 years ago | — | MIT |
| 0.6.0 | 10 years ago | — | MIT |
| 0.5.1 | 11 years ago | — | MIT |
| 0.5.0 | 12 years ago | — | MIT |
| 0.4.1 | 12 years ago | — | MIT |
| 0.4.0 | 12 years ago | — | MIT |
| 0.3.8 | 12 years ago | — | MIT |
Overview
cookies is an npm package that cookies, optionally signed using Keygrip. It has 1 known dependents in the graph. The latest version is 0.9.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need cookies, optionally signed using Keygrip 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
Frequently asked questions
Should I use cookies?
cookies is usable, with caveats. Last published 982 days ago.
How do I install cookies?
Run `npm install cookies` to add cookies to your npm project.
How many dependencies does cookies have?
cookies declares 8 direct dependencies and pulls in 3 packages in total once its runtime tree is resolved totalling about 64 KB on disk.
What license is cookies released under?
cookies is distributed under the MIT license.
How popular is cookies?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on cookies.
Is cookies still maintained?
The most recent release of cookies (v0.9.1) was published 2 years ago.
Does cookies run install scripts?
No. cookies does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.