{"id":20899613,"url":"https://github.com/fourcels/fetch","last_synced_at":"2025-03-12T20:15:44.109Z","repository":{"id":193446677,"uuid":"688834182","full_name":"fourcels/fetch","owner":"fourcels","description":"fetch advance","archived":false,"fork":false,"pushed_at":"2023-11-14T08:54:24.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T16:09:15.451Z","etag":null,"topics":["fetch"],"latest_commit_sha":null,"homepage":"","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/fourcels.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}},"created_at":"2023-09-08T07:48:35.000Z","updated_at":"2023-11-13T08:46:46.000Z","dependencies_parsed_at":"2023-11-13T09:40:22.338Z","dependency_job_id":"645477df-b8df-4b16-bfe2-9f2550145470","html_url":"https://github.com/fourcels/fetch","commit_stats":null,"previous_names":["fourcels/fetch"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourcels%2Ffetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourcels%2Ffetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourcels%2Ffetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourcels%2Ffetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fourcels","download_url":"https://codeload.github.com/fourcels/fetch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243285626,"owners_count":20266849,"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":["fetch"],"created_at":"2024-11-18T11:14:49.044Z","updated_at":"2025-03-12T20:15:44.087Z","avatar_url":"https://github.com/fourcels.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fetch advance\n\n## Install\n\n```bash\nnpm install @fourcels/fetch\n```\n\n## Usage\n\n### default fetch\n\n```js\nimport fetch from \"@fourcels/fetch\";\n\nconst { data } = await fetch.GET(\"https://dummyjson.com/products\", {\n  limit: 10,\n});\nconsole.log(data);\n```\n\n### custom fetch\n\n```js\nimport { Fetch } from \"@fourcels/fetch\";\n\nconst fetcher = new Fetch(\"https://dummyjson.com\", {\n  authFunc(headers) {\n    headers.append(\"Authorization\", \"Bearer token\");\n  },\n  handleError(res, data) {\n    console.log(data);\n  },\n});\nconst { data } = await fetcher.POST(\"/products/add\", {\n  title: \"BMW Pencil\",\n});\nconsole.log(data);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffourcels%2Ffetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffourcels%2Ffetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffourcels%2Ffetch/lists"}