API Project: Request Header Parser Microservice for freeCodeCamp
User stories:
- I can get the IP address, preferred languages (from header
Accept-Language
) and system infos (from headerUser-Agent
) for my device.
Example usage:
Example output:
{"ipaddress":"197.211.59.115","language":"en-GB,en;q=0.9,en-US;q=0.8", "software":"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36"}
Run The App
clone this repo and install all dependancies npm i
npm start
locate port e.g localhost:52421
enjoy!