{"id":29784786,"url":"https://github.com/elycheikhsmail/fetch_as_class","last_synced_at":"2026-05-15T12:07:21.362Z","repository":{"id":62422466,"uuid":"448708311","full_name":"elycheikhsmail/fetch_as_class","owner":"elycheikhsmail","description":"fetch data using class based on deno/browser fetch api","archived":false,"fork":false,"pushed_at":"2022-01-17T14:01:51.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-06T19:51:50.132Z","etag":null,"topics":["class","deno","fetch","poo"],"latest_commit_sha":null,"homepage":"https://github.com/elycheikhsmail/fetch_as_class","language":"TypeScript","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/elycheikhsmail.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":"2022-01-17T00:28:55.000Z","updated_at":"2022-01-17T00:33:48.000Z","dependencies_parsed_at":"2022-11-01T17:33:17.787Z","dependency_job_id":null,"html_url":"https://github.com/elycheikhsmail/fetch_as_class","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/elycheikhsmail/fetch_as_class","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elycheikhsmail%2Ffetch_as_class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elycheikhsmail%2Ffetch_as_class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elycheikhsmail%2Ffetch_as_class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elycheikhsmail%2Ffetch_as_class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elycheikhsmail","download_url":"https://codeload.github.com/elycheikhsmail/fetch_as_class/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elycheikhsmail%2Ffetch_as_class/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33066166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["class","deno","fetch","poo"],"created_at":"2025-07-27T16:12:59.171Z","updated_at":"2026-05-15T12:07:21.347Z","avatar_url":"https://github.com/elycheikhsmail.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fetch_as_class\nclass for fetch data based on fetch api\nexample \n```\n//sava as my.test.ts\n// deno run  --location http://localhost:8080 my.test.ts\nimport {  FetchHelper  } from \"https://deno.land/x/fetch_as_class@v1.0.8/mod.ts\";\nconst fetchHepler = new FetchHelper();\nimport * as t from \"https://deno.land/std@0.102.0/testing/asserts.ts\";\n\n\nDeno.test(\n    \"test 1 for get list domain \",\n    async () =\u003e { \n      fetchHepler.setPathname(\"/api/todos\");    \n      const response = await fetchHepler.GET() \n            await response.json()\n        // or await response.text()\n        // otherwise test will failed with this error\n        // AssertionError: Test case is leaking resources.\n        // Before: {\n        //   \"0\": \"stdin\",\n        //   \"1\": \"stdout\",\n        //   \"2\": \"stderr\"\n        // }\n        // After: {\n        //   \"0\": \"stdin\",\n        //   \"1\": \"stdout\",\n        //   \"2\": \"stderr\",\n        //   \"5\": \"fetchResponseBody\"\n        // }\n      t.assertEquals(response.status, 200); \n    },\n  );\n  \n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felycheikhsmail%2Ffetch_as_class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felycheikhsmail%2Ffetch_as_class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felycheikhsmail%2Ffetch_as_class/lists"}