Catalog npm
Back to packageRELEASE DETAILS

1.0.2

npm

7239

Parses Forwarded headers according to RFC 7239.

forwardedmiddlewareproxy
Published15 Sept 2015
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

7239

Build status

A module to parse Forwarded headers according to RFC 7239.

const sttn = require('7239');

sttn.parseForwardedHeader('for=203.0.113.72;proto=https')
// [{ for: '203.0.113.72', proto: 'https', by: null, host: null }]

sttn.parseForwardedHeader('for=[2001:db8::39]')
// null

app.use(sttn.middleware);

The middleware is compatible with Connect (and therefore Express). It adds a forwarded property to the request, with the value of the last forwarded element or { for: null, proto: null, by: null, host: null } if no such object exists or if the header is invalid.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
tap
Environment
{
  "local_name": "tap",
  "alias": false,
  "peer_metadata": null
}
~1.4.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "c4e28417801fb90018c1f8c091f731d4a8b906ed",
  "tarball": "https://registry.npmjs.org/7239/-/7239-1.0.2.tgz",
  "integrity": "sha512-CSrlvQTLGyNI9fLxE91zx7Oigkoqo8PyJvIi4Glngsxs4ztDQQVIUwiK6mWM/gxXie+LHi4XHR5vrzrEGK4tNQ==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQCZYzG+iQrMZ0K8+G3q901UfrH4kJOC9uGTV0eTw+LjAAIgN5adETduLYyIV3ZKY8dz2d+z1ABhP2sWEouCM1phyHY="
    }
  ]
}

Repository

PENDING
charmander/7239

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:03 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:8bbb45f1a29aece1ffc817f50c0cdabb17ba66d142d0c7c724637a0e9c2a6a36

Other collected versions

1.0.114 Sept1.0.014 SeptView all collected versions →