Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

forwarded

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Issues
File Explorer

Advanced tools

forwarded

Parse HTTP X-Forwarded-For header

    0.2.0latest

Version published
Maintainers
1
Weekly downloads
23,000,177
decreased by-12.84%

Weekly downloads

Readme

Source

forwarded

NPM Version NPM Downloads Node.js Version Build Status Test Coverage

Parse HTTP X-Forwarded-For header

Installation

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

$ npm install forwarded

API

var forwarded = require('forwarded')

forwarded(req)

var addresses = forwarded(req)

Parse the X-Forwarded-For header from the request. Returns an array of the addresses, including the socket address for the req, in reverse order (i.e. index 0 is the socket address and the last index is the furthest address, typically the end-user).

Testing

$ npm test

License

MIT

Keywords

FAQs

What is forwarded?

Parse HTTP X-Forwarded-For header

Is forwarded popular?

The npm package forwarded receives a total of 18,558,401 weekly downloads. As such, forwarded popularity was classified as popular.

Is forwarded well maintained?

We found that forwarded demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 31 May 2021

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc