Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Mar 17, 2024 via pnpm

forwarded 0.2.0

Parse HTTP X-Forwarded-For header
Package summary
Share
0
issues
1
license
1
MIT
Package created
19 Aug 2014
Version published
31 May 2021
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
forwarded@0.2.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
ⓘ This is a list of forwarded 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does forwarded do?

"Forwarded" is a Node.js module designed to parse the HTTP X-Forwarded-For header. This package gives detailed information about the client's connection and it’s beneficial for identifying the originating IP addresses of a client connecting to a web server through HTTP proxy or load balancer.

How do you use forwarded?

To use "forwarded", first install the package using npm with the command npm install forwarded. Import the module into your application like this: var forwarded = require('forwarded').

You can then use it to parse the X-Forwarded-For header from a request. Here is an example:

var forwarded = require('forwarded');
var addresses = forwarded(req);

In this code, addresses will be an array of IP addresses from the X-Forwarded-For header. The addresses are listed in reverse order, meaning the index 0 is the address of the client's socket, while the last index is typically the end-user's IP address.

Where are the forwarded docs?

The documentation for the "forwarded" package can be found on its npm registry page at https://npmjs.org/package/forwarded and on the project's GitHub page at https://github.com/jshttp/forwarded. The readme comprises all the essential details about the installation, API usage, and testing for the package.