Skip to content

An Express server that returns a JSON object with the IP address, language and operating system of a request.

License

Notifications You must be signed in to change notification settings

JohnIrle/Request-Header-Parser

Repository files navigation

Request-Header-Parser

An express app that parses the header of a request and returns a JSON object with the IP address, language and operating system of the requester.

Usage

Visiting https://carnelian-button.glitch.me/api/whoami returns a JSON object.

Local development is localhost:5000/api/whoami

{
  "ipaddress": "IP address",
  "language": "language",
  "software": "operating system"
}

Installing

npm install

Local development

npm run dev

Building

npm run build

and run with:

npm run start

Built With

  • Express - Handles requests and header parsing.

Author

About

An Express server that returns a JSON object with the IP address, language and operating system of a request.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published