forwarded (0.2.0)

Published 2026-02-24 13:56:59 +00:00 by atheaadmin

Installation

registry=
npm install forwarded@0.2.0
"forwarded": "0.2.0"

About this package

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

Dependencies

Development Dependencies

ID Version
beautify-benchmark 0.2.4
benchmark 2.1.4
deep-equal 1.0.1
eslint 7.27.0
eslint-config-standard 14.1.1
eslint-plugin-import 2.23.4
eslint-plugin-node 11.1.0
eslint-plugin-promise 4.3.1
eslint-plugin-standard 4.1.0
mocha 8.4.0
nyc 15.1.0

Keywords

x-forwarded-for http req
Details
npm
2026-02-24 13:56:59 +00:00
0
MIT
latest
2.6 KiB
Assets (1)
Versions (1) View all
0.2.0 2026-02-24