etag
npmv1.8.1Create simple HTTP ETags
Not recommended for new projects
No — etag should not be adopted for new projects. Last published 3284 days ago.
- AAdoption: grade A, Excellent.
100M downloads per week and 4 known dependents.
- FMaintenance: grade F, Failing.
Last published 3284 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 etag 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.6
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the etag README.
var etag = require('etag')etag 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 |
|---|---|---|---|---|
| etagthis page | 100M | 4 | MIT | 9 years ago |
| content-type | 191.4M | 6 | MIT | 1 day ago |
| vary | 100.2M | 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 etag v1.8.1. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (13)
Used by
Popular packages that depend on etag.
Native-ESM powered web dev build tool
Better streaming static file server with Range and conditional-GET support
Fast, unopinionated, minimalist web framework
Runtime typescript and ESM support for Node.js
Relationship graph
Dependencies (left) and dependents (right) of etag.
Frequently installed together
An extremely fast JavaScript and CSS bundler and minifier.
Vite DevTools
A pure JavaScript implementation of Sass.
Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol
Escape string for use in HTML
Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.
Missing ECMAScript module utils for Node.js
TypeScript definitions for node
Traverse an ESTree-compliant AST
Universal filesystem path utils
Tool for transforming styles with JS plugins
JavaScript parser and stringifier for YAML
Release history
No releases in the last two years, typically about 22 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.8.1latest | 9 years ago | — | MIT |
| 1.8.0 | 9 years ago | — | MIT |
| 1.7.0 | 11 years ago | — | MIT |
| 1.6.0 | 11 years ago | — | MIT |
| 1.5.1 | 11 years ago | — | MIT |
| 1.5.0 | 12 years ago | — | MIT |
| 1.4.0 | 12 years ago | — | MIT |
| 1.3.1 | 12 years ago | — | MIT |
| 1.3.0 | 12 years ago | — | MIT |
| 1.2.1 | 12 years ago | — | MIT |
| 1.2.0 | 12 years ago | — | MIT |
| 1.1.0 | 12 years ago | — | MIT |
| 1.0.1 | 12 years ago | — | MIT |
| 1.0.0 | 12 years ago | — | MIT |
Overview
etag is an npm package that create simple HTTP ETags. It is extremely widely used, with about 100M downloads per week and 4 known dependents in the graph. The latest version is 1.8.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need create simple HTTP ETags 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 (100M 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 etag?
No — etag should not be adopted for new projects. Last published 3284 days ago.
How do I install etag?
Run `npm install etag` to add etag to your npm project.
What license is etag released under?
etag is distributed under the MIT license.
How popular is etag?
etag has approximately 99,967,813 downloads per week and 4 known dependent packages.
Is etag still maintained?
The most recent release of etag (v1.8.1) was published 9 years ago.
Does etag run install scripts?
No. etag does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.