{"id":22799413,"url":"https://github.com/kadoshita/4d-pocket","last_synced_at":"2026-04-30T00:02:52.969Z","repository":{"id":57093137,"uuid":"331286007","full_name":"kadoshita/4d-pocket","owner":"kadoshita","description":"HTTP リクエストを雑に受け取るツール","archived":false,"fork":false,"pushed_at":"2021-01-28T12:53:01.000Z","size":150,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T21:12:01.081Z","etag":null,"topics":["cli","http-server","mock-server","tool","typescript"],"latest_commit_sha":null,"homepage":"https://4d-pocket.glitch.me","language":"TypeScript","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/kadoshita.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}},"created_at":"2021-01-20T11:29:08.000Z","updated_at":"2023-02-13T20:15:13.000Z","dependencies_parsed_at":"2022-08-22T21:41:06.613Z","dependency_job_id":null,"html_url":"https://github.com/kadoshita/4d-pocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadoshita%2F4d-pocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadoshita%2F4d-pocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadoshita%2F4d-pocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadoshita%2F4d-pocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kadoshita","download_url":"https://codeload.github.com/kadoshita/4d-pocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365651,"owners_count":20765549,"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":["cli","http-server","mock-server","tool","typescript"],"created_at":"2024-12-12T07:08:53.238Z","updated_at":"2026-04-30T00:02:47.942Z","avatar_url":"https://github.com/kadoshita.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 4d-pocket\n\nHTTP リクエストを雑に受け取るツール\n\n任意のパスに対する，任意のリクエストメソッドの情報を出力します\n\n![screenshot](screenshot.png)\n\n# Usage\n\n```\n$ npx 4d-pocket -h\nUsage: 4d-pocket [options]\n\nOptions:\n  -V, --version      output the version number\n  -p, --port [port]  port (default: \"3000\")\n  -h, --help         display help for command\n```\n\n```\n$ npx 4d-pocket\n21:03:44 Server listening at http://127.0.0.1:3000\n21:03:49 [GET] /test/path {\"host\":\"127.0.0.1:3000\",\"user-agent\":\"curl/7.64.1\",\"accept\":\"*/*\"} null\n21:04:05 [POST] /api/test/path {\"host\":\"127.0.0.1:3000\",\"user-agent\":\"curl/7.64.1\",\"accept\":\"*/*\",\"content-type\":\"application/json\",\"content-length\":\"15\"} {\"key\":\"value\"}\n21:04:12 [PUT] /test/path {\"host\":\"127.0.0.1:3000\",\"user-agent\":\"curl/7.64.1\",\"accept\":\"*/*\"} null\n21:04:16 [DELETE] /test/path {\"host\":\"127.0.0.1:3000\",\"user-agent\":\"curl/7.64.1\",\"accept\":\"*/*\"} null\n21:04:21 [HEAD] /test/path {\"host\":\"127.0.0.1:3000\",\"user-agent\":\"curl/7.64.1\",\"accept\":\"*/*\"} null\n21:04:41 [PATCH] /test/path {\"host\":\"127.0.0.1:3000\",\"user-agent\":\"curl/7.64.1\",\"accept\":\"*/*\"} null\n```\n\n```\n$ curl http://127.0.0.1:3000/test/path\n$ curl -X POST -H 'Content-Type:application/json' http://127.0.0.1:3000/api/test/path -d '{\"key\":\"value\"}'\n$ curl http://127.0.0.1:3000/test/path -X PUT\n$ curl http://127.0.0.1:3000/test/path -X DELETE\n$ curl http://127.0.0.1:3000/test/path -X HEAD\n$ curl http://127.0.0.1:3000/test/path -X PATCH\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkadoshita%2F4d-pocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkadoshita%2F4d-pocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkadoshita%2F4d-pocket/lists"}