3 [![NPM Version][npm-image]][npm-url]
4 [![NPM Downloads][downloads-image]][downloads-url]
5 [![Node.js Version][node-version-image]][node-version-url]
6 [![Build Status][travis-image]][travis-url]
7 [![Test Coverage][coveralls-image]][coveralls-url]
9 Parse HTTP X-Forwarded-For header
14 $ npm install forwarded
20 var forwarded = require('forwarded')
26 var addresses = forwarded(req)
29 Parse the `X-Forwarded-For` header from the request. Returns an array
30 of the addresses, including the socket address for the `req`. In reverse
31 order (i.e. index `0` is the socket address and the last index is the
32 furthest address, typically the end-user).
44 [npm-image]: https://img.shields.io/npm/v/forwarded.svg?style=flat
45 [npm-url]: https://npmjs.org/package/forwarded
46 [node-version-image]: https://img.shields.io/node/v/forwarded.svg?style=flat
47 [node-version-url]: http://nodejs.org/download/
48 [travis-image]: https://img.shields.io/travis/jshttp/forwarded.svg?style=flat
49 [travis-url]: https://travis-ci.org/jshttp/forwarded
50 [coveralls-image]: https://img.shields.io/coveralls/jshttp/forwarded.svg?style=flat
51 [coveralls-url]: https://coveralls.io/r/jshttp/forwarded?branch=master
52 [downloads-image]: https://img.shields.io/npm/dm/forwarded.svg?style=flat
53 [downloads-url]: https://npmjs.org/package/forwarded