{"id":18067571,"url":"https://github.com/lependu/fcc-whoami","last_synced_at":"2026-07-19T08:34:36.057Z","repository":{"id":90530303,"uuid":"97923589","full_name":"lependu/fcc-whoami","owner":"lependu","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-04T11:26:05.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"0.1.0","last_synced_at":"2025-10-26T03:01:11.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lependu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-07-21T08:14:21.000Z","updated_at":"2017-07-21T08:15:26.000Z","dependencies_parsed_at":"2023-03-13T17:57:28.963Z","dependency_job_id":null,"html_url":"https://github.com/lependu/fcc-whoami","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lependu/fcc-whoami","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lependu%2Ffcc-whoami","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lependu%2Ffcc-whoami/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lependu%2Ffcc-whoami/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lependu%2Ffcc-whoami/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lependu","download_url":"https://codeload.github.com/lependu/fcc-whoami/tar.gz/refs/heads/0.1.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lependu%2Ffcc-whoami/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35647761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-19T02:00:06.923Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-31T07:09:47.916Z","updated_at":"2026-07-19T08:34:36.026Z","avatar_url":"https://github.com/lependu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Free code camp\n[request header praser](https://www.freecodecamp.org/challenges/request-header-parser-microservice)\nmicroservice challange.\n\n### Endpoints\n\n## `GET /whoami`\n\n**Description:** Returns parsed headers. It requires\nAccept-Language, User-Agent, X-Forwarded-For request headers to be set.\nIf request header(s) is not defined, it returns `null`.\n\n**Example response:**\n```JSON\n{\n  \"ipaddress\": \"192.168.1.1\",\n  \"language\": \"en-US\",\n  \"software\": \"X11; Linux x86_64; rv:50.0\"\n}\n```\n\n### Errors\n\n## `404`\n```JSON\n{\n  \"message\": \"Not Found\",\n}\n```\n\n### Development\n- development server with nodemon\n`$ npm run dev`\nvisit http://localhost:3000\n\n### Tests\n- lint `$ npm run lint`\n- test `$ npm run test`\n- coverage `$ npm run coverage`\n\n### Deployment\nThe deployment process depends on your server and needs.\n[Here](https://egghead.io/lessons/node-js-setup-an-nginx-proxy-for-a-node-js-app-with-docker)\nyou can find a cool tutorial how to setup an `nginx` proxy for a `Node.js` app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flependu%2Ffcc-whoami","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flependu%2Ffcc-whoami","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flependu%2Ffcc-whoami/lists"}