vary
npmv1.1.2Manipulate the HTTP Vary header
Not recommended for new projects
No — vary should not be adopted for new projects. Last published 3273 days ago.
- AAdoption: grade A, Excellent.
100.2M downloads per week and 4 known dependents.
- FMaintenance: grade F, Failing.
Last published 3273 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies.
- 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 vary 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
- node >= 0.8
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the vary README.
var vary = require('vary')vary vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| varythis page | 100.2M | 4 | MIT | 9 years ago |
| content-type | 191.4M | 6 | MIT | 1 day ago |
| etag | 100M | 4 | MIT | 1 day ago |
| content-disposition | 0 | 2 | MIT | 1 day ago |
| negotiator | 183.3M | 2 | MIT | 1 day ago |
| node-fetch | 172.9M | 9 | MIT | 1 day ago |
Dependencies
Declared by vary v1.1.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (12)
Used by
Popular packages that depend on vary.
Relationship graph
Dependencies (left) and dependents (right) of vary.
Frequently installed together
Create HTTP error objects
An AST-based pattern checker for JavaScript.
An HTTP/1.1 client, written from scratch for Node.js
Really Fast Deep Clone
Asynchronous bootstrapping of Node applications
A small utility for creating warnings and emitting them.
Fake HTTP injection library
Stringify your JSON at max speed
Crazy fast http radix based router
Build and manage the fast-json-stringify instances for the fastify framework
The semantic version parser used by npm.
LRU and FIFO caches for Client or Server
Release history
No releases in the last two years, typically about 187 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.1.2latest | 9 years ago | — | MIT |
| 1.1.1 | 9 years ago | — | MIT |
| 1.1.0 | 11 years ago | — | MIT |
| 1.0.1 | 11 years ago | — | MIT |
| 1.0.0 | 12 years ago | — | MIT |
| 0.1.0 | 12 years ago | — | MIT |
| 0.0.0 | 12 years ago | — | MIT |
Overview
vary is an npm package that manipulate the HTTP Vary header. It is extremely widely used, with about 100.2M downloads per week and 4 known dependents in the graph. The latest version is 1.1.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need manipulate the HTTP Vary header and value a battle-tested, widely-adopted 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
- Large, well-established user base (100.2M weekly downloads).
- 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 vary?
No — vary should not be adopted for new projects. Last published 3273 days ago.
How do I install vary?
Run `npm install vary` to add vary to your npm project.
What license is vary released under?
vary is distributed under the MIT license.
How popular is vary?
vary has approximately 100,162,905 downloads per week and 4 known dependent packages.
Is vary still maintained?
The most recent release of vary (v1.1.2) was published 9 years ago.
Does vary run install scripts?
No. vary does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.