@routes/client

0.0.0Β β€’Β PublicΒ β€’Β Published

@routes/client

πŸ’β€β™‚οΈ Display information about the client making the request

Use the query string to request for specific keys

GET /info?hostname&url&query&headers.accept&headers.user-agent

Available keys to get are

  • body
  • cookies
  • signedCookies
  • params
  • query
  • originalUrl
  • baseUrl
  • url
  • protocol
  • secure
  • ip
  • ips
  • subdomains
  • path
  • hostname
  • fresh
  • stale
  • xhr
  • headers.*

The headers sub keys have been fattened (headers.x) and may be acquired by asking for headers, headers.* or specifically: headers.user-agent and so forth.

Package Sidebar

Install

npm i @routes/client

Weekly Downloads

0

Version

0.0.0

License

MIT

Unpacked Size

2.85 kB

Total Files

3

Last publish

Collaborators

  • omrilotan