forwarded
npmv0.2.0Parse HTTP X-Forwarded-For header
Not recommended for new projects
No — forwarded should not be adopted for new projects. Last published 1927 days ago.
- AAdoption: grade A, Excellent.
92M downloads per week and 1 known dependents.
- FMaintenance: grade F, Failing.
Last published 1927 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 5.7 KB installed.
- 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 forwarded 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 forwarded README.
var forwarded = require('forwarded')forwarded 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 |
|---|---|---|---|---|
| forwardedthis page | 92M | 1 | MIT | 5 years ago |
| @fastify/forwarded | 0 | 1 | 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 |
| undici | 158.5M | 15 | MIT | 1 day ago |
Dependencies
Declared by forwarded v0.2.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (11)
Used by
Popular packages that depend on forwarded.
Relationship graph
Dependencies (left) and dependents (right) of forwarded.
Frequently installed together
Release history
No releases in the last two years, typically about 1085 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.2.0latest | 5 years ago | 5.7 KB | MIT |
| 0.1.2 | 9 years ago | — | MIT |
| 0.1.1 | 9 years ago | — | MIT |
| 0.1.0 | 12 years ago | — | MIT |
Overview
forwarded is an npm package that parse HTTP X-Forwarded-For header. It is extremely widely used, with about 92M downloads per week and 1 known dependents in the graph. The latest version is 0.2.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need parse HTTP X-Forwarded-For 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 (92M 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
Keywords
Frequently asked questions
Should I use forwarded?
No — forwarded should not be adopted for new projects. Last published 1927 days ago.
How do I install forwarded?
Run `npm install forwarded` to add forwarded to your npm project.
What license is forwarded released under?
forwarded is distributed under the MIT license.
How popular is forwarded?
forwarded has approximately 91,950,877 downloads per week and 1 known dependent packages.
Is forwarded still maintained?
The most recent release of forwarded (v0.2.0) was published 5 years ago.
Does forwarded run install scripts?
No. forwarded does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.