Catalog npm
PACKAGE EXPLORERView in registry

7239

npm

Parses Forwarded headers according to RFC 7239.

forwardedmiddlewareproxy
Versions collected3
Direct dependencies1From release 1.0.2
Last observed20 Oct, 21:03 UTC

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.

Versions 3

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.2Registry latest15 Sept 20151
1.0.114 Sept 20151
1.0.014 Sept 20151

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

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:cabec312477932a0e5c0789798ad8029ca123fc175c04f2b5cc2fc1ea622a65f