{"id":22374867,"url":"https://github.com/qubitproducts/log-requests","last_synced_at":"2025-03-26T17:33:17.239Z","repository":{"id":57290584,"uuid":"48113800","full_name":"QubitProducts/log-requests","owner":"QubitProducts","description":"A service that simply logs all requests sent to it","archived":false,"fork":false,"pushed_at":"2018-08-11T00:00:04.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-03-15T11:16:03.758Z","etag":null,"topics":["ceh","cmh","implement"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QubitProducts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-16T14:04:07.000Z","updated_at":"2023-06-02T12:07:04.000Z","dependencies_parsed_at":"2022-08-28T07:00:14.200Z","dependency_job_id":null,"html_url":"https://github.com/QubitProducts/log-requests","commit_stats":null,"previous_names":["qubitdigital/log-requests"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QubitProducts%2Flog-requests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QubitProducts%2Flog-requests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QubitProducts%2Flog-requests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QubitProducts%2Flog-requests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QubitProducts","download_url":"https://codeload.github.com/QubitProducts/log-requests/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245702406,"owners_count":20658610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ceh","cmh","implement"],"created_at":"2024-12-04T21:18:48.669Z","updated_at":"2025-03-26T17:33:17.194Z","avatar_url":"https://github.com/QubitProducts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# log-requests\nA service that simply echos and logs all requests sent to it\n\n## Usage\n```\nnpm install log-requests\nlog-requests --help\n\nUsage: log-requests [options]\n\nA service that simply echos and logs all requests sent to it\n\nOptions:\n\n  -h, --help         output usage information\n  -V, --version      output the version number\n  -p, --port \u003cport\u003e  Specify port [2345]\n  -u, --url          Log url\n  -b, --body         Log body\n  -q, --query        Log query\n  -h, --headers      Log headers\n  -c, --cookies      Log cookies\n\nExamples:\n\n  to log requests to http://localhost:2345:\n\n  log-requests\n\n  to log requests to http://localhost:2000:\n\n  log-requests -p 2000\n  log-requests --port 2000\n\n  to log just the url and cookies for requests to http://localhost:2000:\n\n  log-requests -p 2000 -uc\n  log-requests --port 2000 --url --cookies\n\n  to log just the headers query and body for requests to http://localhost:2000:\n\n  log-requests -p 2000 -hqb\n  log-requests -p 2000 --headers --query --body\n\n```\n\n## Output\n```\nlog-requests\ncurl http://localhost:2345\n```\nResponse:\n```\n\n  {\"url\":\"/\",\"body\":{},\"query\":{},\"headers\":{\"host\":\"localhost:2345\",\"user-agent\":\"curl/7.43.0\",\"accept\":\"*/*\"},\"cookies\":{}}\n\n```\nLog:\n```\n\n  ________________REQUEST SUMMARY________________\n  url:     /\n  body:\n\n  query:\n\n  headers:\n    host:       localhost:2345\n    user-agent: curl/7.43.0\n    accept:     */*\n  cookies:\n```\n\n## Dependencies\nnodejs (https://nodejs.org/en/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubitproducts%2Flog-requests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqubitproducts%2Flog-requests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubitproducts%2Flog-requests/lists"}