{"id":22452913,"url":"https://github.com/runfaj/gretchen-fetch","last_synced_at":"2026-02-12T20:32:53.343Z","repository":{"id":70425044,"uuid":"229371870","full_name":"runfaj/gretchen-fetch","owner":"runfaj","description":"Making \"fetch\" happen!","archived":false,"fork":false,"pushed_at":"2019-12-21T04:19:27.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-14T18:49:56.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/runfaj.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":"2019-12-21T03:40:06.000Z","updated_at":"2019-12-21T04:19:29.000Z","dependencies_parsed_at":"2023-02-24T00:19:41.194Z","dependency_job_id":null,"html_url":"https://github.com/runfaj/gretchen-fetch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/runfaj/gretchen-fetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runfaj%2Fgretchen-fetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runfaj%2Fgretchen-fetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runfaj%2Fgretchen-fetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runfaj%2Fgretchen-fetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runfaj","download_url":"https://codeload.github.com/runfaj/gretchen-fetch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runfaj%2Fgretchen-fetch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29380604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T19:05:20.189Z","status":"ssl_error","status_checked_at":"2026-02-12T19:01:44.216Z","response_time":55,"last_error":"SSL_read: 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":[],"created_at":"2024-12-06T06:13:54.940Z","updated_at":"2026-02-12T20:32:53.339Z","avatar_url":"https://github.com/runfaj.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# gretchen-fetch\nMaking \"fetch\" happen!\n\nThis fetch library is _so fetch_! It would make Gretchen proud.\n\n## What is this?\n\nA fetching library that can be used in any javascript-based application, whether that is client side or server side. Included in this fetching library is 3 ways to fetch:\n1. Promise-based (regular promise, or async/await)\n2. Callback-based (but why would you want to?)\n3. Class-based (e.g. new Gretch())\n\n## Installing and Importing\n\nInstall:\n```\nnpm install gretchen-fetch\nor\nyarn gretchen-fetch\n```\n\nImporting:\n```\nimport Gretch from 'gretchen-fetch';\nor\nconst Gretch = require('gretchen-fetch');\n```\n\n## Usage\n\nPromise-based\n```\nconst somePromise = Gretch.get('\u003curl\u003e', { ...queryParams });\nor\nconst results = await Gretch.get('\u003curl', { ...queryParams });\n```\n\nCallback-based\n```\nGretch.get('\u003curl\u003e', { ...queryParams }, function(results) {});\n```\n\nClass-based\n```\nconst gretchen = new Gretch();\ngretchen.makeFetchHappen(options);\n```\n\n## The nitty-gritty\n\nThere are several static methods built for you. Each follow the pattern of the following for parameters:\n```\nGretch.method(url, params/data, callback, options)\n```\n- Gretch.get:\n- Gretch.post: \n- Gretch.put:\n- Gretch.delete: \n- Gretch.patch: \n- Gretch.options: \n- Gretch.head:\n\nAlternately, you can use the raw request method to customize to your liking:\n```\nGretch.fetch({\n  method: \u003csee list above, defaults to \"get\"\u003e\n  url: '\u003curl\u003e',\n  params: { \"key\": \"value\" },\n  data: \u003csome data\u003e,\n  callback: (results)=\u003e{},\n  headers: { \"name\": \"value\" },\n  timeout: \u003cms\u003e,\n  responseType: \u003cvalid reponse type, defaults to json\u003e,\n  .......?\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunfaj%2Fgretchen-fetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunfaj%2Fgretchen-fetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunfaj%2Fgretchen-fetch/lists"}