fresh
npmv0.5.2HTTP response freshness testing
Not recommended for new projects
No — fresh should not be adopted for new projects. Last published 3283 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 3283 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 fresh 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 fresh README.
var fresh = require('fresh')fresh 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 |
|---|---|---|---|---|
| freshthis page | 0 | 3 | MIT | 9 years ago |
| make-fetch-happen | 22.8M | 1 | ISC | 1 day ago |
| import-fresh | 0 | 2 | MIT | 1 day ago |
| content-type | 191.4M | 6 | MIT | 1 day ago |
| negotiator | 183.3M | 2 | MIT | 1 day ago |
| node-fetch | 172.9M | 9 | MIT | 1 day ago |
Dependencies
Declared by fresh v0.5.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (11)
Used by
Popular packages that depend on fresh.
Relationship graph
Dependencies (left) and dependents (right) of fresh.
Frequently installed together
The ultimate javascript content-type utility.
Create HTTP error objects
Encode a URL to a percent-encoded form, excluding already-encoded sequences
Execute a callback when a request closes, finishes, or errors
HTTP status utility
Escape string for use in HTML
Create and parse HTTP Content-Type header
An AST-based pattern checker for JavaScript.
Infer the content-type of a request.
Manipulate the HTTP Vary header
Create simple HTTP ETags
Higher-level content negotiation
Release history
No releases in the last two years, typically about 172 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.0.0 | 2 years ago | 10 KB | MIT |
| 1.0.0 | 2 years ago | 10.0 KB | MIT |
| 0.5.2latest | 9 years ago | — | MIT |
| 0.5.1 | 9 years ago | — | MIT |
| 0.5.0 | 9 years ago | — | MIT |
| 0.4.0 | 9 years ago | — | MIT |
| 0.3.0 | 11 years ago | — | MIT |
| 0.2.4 | 12 years ago | — | MIT |
| 0.2.3 | 12 years ago | — | MIT |
| 0.2.2 | 12 years ago | — | MIT |
| 0.2.1 | 12 years ago | — | MIT |
| 0.2.0 | 13 years ago | — | MIT |
| 0.1.0 | 14 years ago | — | MIT |
| 0.0.1 | 14 years ago | — | MIT |
Overview
fresh is an npm package that hTTP response freshness testing. It has 3 known dependents in the graph. The latest version is 0.5.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need hTTP response freshness testing 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
Frequently asked questions
Should I use fresh?
No — fresh should not be adopted for new projects. Last published 3283 days ago.
How do I install fresh?
Run `npm install fresh` to add fresh to your npm project.
What license is fresh released under?
fresh is distributed under the MIT license.
How popular is fresh?
npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on fresh.
Is fresh still maintained?
The most recent release of fresh (v0.5.2) was published 9 years ago.
Does fresh run install scripts?
No. fresh does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.