Back to Explore

jshttp/forwarded

GitHub
3 watchersOpen source

Last release:

A JavaScript Node.js module that parses the HTTP `X-Forwarded-For` header from a Node.js `IncomingMessage` request object. It returns an array of IP addresses, including the socket address, in reverse order (index 0 is the socket address, the last index is typically the end-user).

Project status

  • Maintenance status: The repo appears to be maintained, with an upstream push on 2026-06-01 (about 3 months before today), though the provided published update history shows no new version since v0.2.0 in 2021.
  • Update cadence: Public updates are infrequent (2017-09, then 2021-05, with no further version shown in the provided summaries), suggesting a low-frequency maintenance pattern rather than regular releases.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v0.2.0

    Release v0.2.0 primarily updates how the library extracts the client IP for X-Forwarded-For parsing, moving from the deprecated req.connection to req.socket. The core behavior is implemented in index.js via a new getSocketAddr helper and validated with updated tests.

  • v0.1.2

    Release v0.1.2 focuses on performance improvements to how the library parses the X-Forwarded-For header. It also adds a small benchmark harness and updates dev tooling/CI settings.

  • v0.1.1

    Version 0.1.1 updates the X-Forwarded-For parsing to fix incorrect handling of leading and trailing optional whitespace (OWS), and it includes a small performance tweak by hoisting the token-splitting RegExp. The release notes only mention these behavioral and perf changes.

  • v0.1.0

    This release, v0.1.0, is the initial public release of the project. There are no release notes beyond the statement that it is the first version, so no specific developer-impacting changes are documented.