{"id":20497520,"url":"https://github.com/cheesecakelabs/fetch","last_synced_at":"2025-04-13T18:40:54.922Z","repository":{"id":57101367,"uuid":"80823083","full_name":"CheesecakeLabs/fetch","owner":"CheesecakeLabs","description":"Opinionated fetch wrapper for modern front-end.","archived":false,"fork":false,"pushed_at":"2017-11-09T10:44:58.000Z","size":60,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-09T14:11:19.258Z","etag":null,"topics":["fetch","front-end","javascript","rest-api"],"latest_commit_sha":null,"homepage":"","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/CheesecakeLabs.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":"2017-02-03T11:24:46.000Z","updated_at":"2019-10-29T19:39:16.000Z","dependencies_parsed_at":"2022-08-20T16:20:37.986Z","dependency_job_id":null,"html_url":"https://github.com/CheesecakeLabs/fetch","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheesecakeLabs%2Ffetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheesecakeLabs%2Ffetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheesecakeLabs%2Ffetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheesecakeLabs%2Ffetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CheesecakeLabs","download_url":"https://codeload.github.com/CheesecakeLabs/fetch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248764369,"owners_count":21158072,"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","front-end","javascript","rest-api"],"created_at":"2024-11-15T18:11:18.850Z","updated_at":"2025-04-13T18:40:54.885Z","avatar_url":"https://github.com/CheesecakeLabs.png","language":"JavaScript","readme":"# fetch\n\nOpinionated fetch wrapper for modern front-end.\n\n## Install\n\n```\nyarn add @cheesecakelabs/fetch\n```\n\n## Initialize\n\n```javascript\nimport CKLFetch from '@cheesecakelabs/fetch'\n\nconst fetch = new CKLFetch('http://your_api.io/api/v1/')\n\nfetch.get('users')\nfetch.post('users', options, body)\nfetch.patch('users', options, body)\nfetch.put('users', options, body)\nfetch.delete('users')\nfetch.upload('users', options, formData)\n\nfetch.get(['campaigns', 'my-campaign-id'], { key, params })\n\nconst data = new FormData()\ndata.append('file', payload.image)\ndata.append('upload_preset', UPLOAD_PRESET)\nfetch.upload('some-ednpoint', {}, data)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheesecakelabs%2Ffetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheesecakelabs%2Ffetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheesecakelabs%2Ffetch/lists"}