{"id":16700642,"url":"https://github.com/bolajiayodeji/simple-fetch-library","last_synced_at":"2025-04-10T03:51:46.613Z","repository":{"id":47979438,"uuid":"179725558","full_name":"BolajiAyodeji/simple-fetch-library","owner":"BolajiAyodeji","description":"A simple Fetch API library for making HTTP Requests","archived":false,"fork":false,"pushed_at":"2021-08-11T08:51:57.000Z","size":2315,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T03:51:41.665Z","etag":null,"topics":["fetch-api","fetching-data-from-server","http","library"],"latest_commit_sha":null,"homepage":"https://bolajiayodeji.github.io/simple-fetch-library/","language":"JavaScript","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/BolajiAyodeji.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":"2019-04-05T17:23:31.000Z","updated_at":"2023-09-21T17:22:35.000Z","dependencies_parsed_at":"2022-08-12T15:50:18.082Z","dependency_job_id":null,"html_url":"https://github.com/BolajiAyodeji/simple-fetch-library","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/BolajiAyodeji%2Fsimple-fetch-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BolajiAyodeji%2Fsimple-fetch-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BolajiAyodeji%2Fsimple-fetch-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BolajiAyodeji%2Fsimple-fetch-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BolajiAyodeji","download_url":"https://codeload.github.com/BolajiAyodeji/simple-fetch-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154998,"owners_count":21056542,"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-api","fetching-data-from-server","http","library"],"created_at":"2024-10-12T18:11:32.041Z","updated_at":"2025-04-10T03:51:46.574Z","avatar_url":"https://github.com/BolajiAyodeji.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Getting Started\n\nDownload and include the JavaScript file | [full version](https://github.com/BolajiAyodeji/simple-fetch-library/blob/master/dist/simpleFetch.js) | [minified](https://github.com/BolajiAyodeji/simple-fetch-library/blob/master/dist/simpleFetch.min.js) | [ES6 version](https://github.com/BolajiAyodeji/simple-fetch-library/blob/master/src/simpleFetch.js) |\n\n```html\n\u003cscript src=\"simpleFetch.js\"\u003e\u003c/script\u003e\n```\n```html\n\u003cscript src=\"simpleFetch.min.js\"\u003e\u003c/script\u003e\n```\n\u003e Create a new simpleFETCH\n ```js\n const http = new simpleFetch;\n ```\n\n# Examples\n\n* GET Request\n\n```js\nhttp.get(\"https://jsonplaceholder.typicode.com/users\")\n    .then(data =\u003e console.log(data))\n    .catch(err =\u003e console.log(err));\n```\n\u003cbr\u003e\n\n* POST Request\n\n```js\nconst data = {\n    \"name\": \"Bolaji Ayodeji\",\n    \"username\": \"bolajiayodeji\",\n    \"email\": \"hi@bolajiayodeji.com\",\n    \"address\": {\n      \"street\": \"Hello world\",\n      \"suite\": \"Hello\",\n      \"city\": \"Lokoja, Kogi\",\n      \"zipcode\": \"xxx-xxx-xxx\",\n      \"geo\": {\n        \"lat\": \"29.4572\",\n        \"lng\": \"-164.2990\"\n      }\n    },\n    \"phone\": \"+234 8109445504\",\n    \"website\": \"https://bolajiayodeji.com\",\n    \"company\": {\n      \"name\": \"PhilanthroLab\",\n      \"catchPhrase\": \"Multi-tiered zero tolerance productivity\",\n      \"bs\": \"transition cutting-edge web services\"\n    }\n};\n\nhttp.post(\"https://jsonplaceholder.typicode.com/users\", data)\n    .then(data =\u003e console.log(data))\n    .catch(err =\u003e console.log(err));\n```\n\u003cbr\u003e\n\n* PUT Request\n\n```js\nconst data = {\n    \"name\": \"Bolaji Ayodeji\",\n    \"username\": \"bolajiayodeji\",\n    \"email\": \"hi@bolajiayodeji.com\",\n    \"address\": {\n      \"street\": \"Hello world\",\n      \"suite\": \"Hello\",\n      \"city\": \"Lokoja, Kogi\",\n      \"zipcode\": \"xxx-xxx-xxx\",\n      \"geo\": {\n        \"lat\": \"29.4572\",\n        \"lng\": \"-164.2990\"\n      }\n    },\n    \"phone\": \"+234 8109445504\",\n    \"website\": \"https://bolajiayodeji.com\",\n    \"company\": {\n      \"name\": \"PhilanthroLab\",\n      \"catchPhrase\": \"Multi-tiered zero tolerance productivity\",\n      \"bs\": \"transition cutting-edge web services\"\n    }\n};\n\nhttp.put(\"https://jsonplaceholder.typicode.com/users/2\", data)\n    .then(data =\u003e console.log(data))\n    .catch(err =\u003e console.log(err));\n```\n\u003cbr\u003e\n\n* DELETE Request\n\n```js\nhttp.delete(\"https://jsonplaceholder.typicode.com/users/2\")\n  .then(() =\u003e console.log(data))\n  .catch(err =\u003e console.log(err));\n```\n\n# Demo\nDemo [here](https://bolajiayodeji.github.io/simple-fetch-library/demo/)\n\n# Contribution Guide\n\n```bash\ngit clone https://github.com/BolajiAyodeji/simple-fetch-library.git\n```\n```bash\ncd simple-fetch-library\n```\n```bash\nnpm install\n```\n```bash\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolajiayodeji%2Fsimple-fetch-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbolajiayodeji%2Fsimple-fetch-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolajiayodeji%2Fsimple-fetch-library/lists"}