demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/forwarded-0.2.0/README.md

Path
demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/forwarded-0.2.0/README.md
Status
scanned
Type
file
Name
README.md
Extension
.md
Programming language

      
    
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
1654 (1.6 KB)
MD5
5e737f1f3045f9875119cf34bf28fb03
SHA1
1970b4f2d0dd6bcef504df2b88a55bea3fbb45af
SHA256
114e825a45563255497909dbdc6b776ae7718698896a8e66d8dc980dcd2c1088
SHA512

      
    
SHA1_git
fdd220bcaab88b00b844736404c326fa6bdfbc0e
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
README.md | 1.6 KB |

# forwarded [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Node.js Version][node-version-image]][node-version-url] [![Build Status][ci-image]][ci-url] [![Test Coverage][coveralls-image]][coveralls-url] Parse HTTP X-Forwarded-For header ## Installation This is a [Node.js](https://nodejs.org/en/) module available through the [npm registry](https://www.npmjs.com/). Installation is done using the [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): ```sh $ npm install forwarded ``` ## API ```js var forwarded = require('forwarded') ``` ### forwarded(req) ```js 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 ```sh $ npm test ``` ## License [MIT](LICENSE) [ci-image]: https://badgen.net/github/checks/jshttp/forwarded/master?label=ci [ci-url]: https://github.com/jshttp/forwarded/actions?query=workflow%3Aci [npm-image]: https://img.shields.io/npm/v/forwarded.svg [npm-url]: https://npmjs.org/package/forwarded [node-version-image]: https://img.shields.io/node/v/forwarded.svg [node-version-url]: https://nodejs.org/en/download/ [coveralls-image]: https://img.shields.io/coveralls/jshttp/forwarded/master.svg [coveralls-url]: https://coveralls.io/r/jshttp/forwarded?branch=master [downloads-image]: https://img.shields.io/npm/dm/forwarded.svg [downloads-url]: https://npmjs.org/package/forwarded
Detected license expression
mit
Detected license expression (SPDX)
MIT
Percentage of license text
1.26
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
mit-bdcba66f-6e80-f7bd-7994-748183fe5693 mit MIT
URL Start line End line
https://nodejs.org/en 13 13
https://www.npmjs.com/ 14 14
https://docs.npmjs.com/getting-started/installing-npm-packages-locally 15 15
https://badgen.net/github/checks/jshttp/forwarded/master?label=ci 48 48
https://github.com/jshttp/forwarded/actions?query=workflow:ci 49 49
https://img.shields.io/npm/v/forwarded.svg 50 50
https://npmjs.org/package/forwarded 51 51
https://img.shields.io/node/v/forwarded.svg 52 52
https://nodejs.org/en/download/ 53 53
https://img.shields.io/coveralls/jshttp/forwarded/master.svg 54 54
https://coveralls.io/r/jshttp/forwarded?branch=master 55 55
https://img.shields.io/npm/dm/forwarded.svg 56 56
Package URL License Primary language
pkg:npm/acme-demo-app@1.0.0 JavaScript
pkg:npm/forwarded@0.2.0 mit JavaScript