{"id":16700640,"url":"https://github.com/bolajiayodeji/simple-ajax-library","last_synced_at":"2026-03-16T10:38:37.255Z","repository":{"id":47979478,"uuid":"179673878","full_name":"BolajiAyodeji/simple-ajax-library","owner":"BolajiAyodeji","description":"A simple AJAX Library for making HTTP Requests","archived":false,"fork":false,"pushed_at":"2023-01-23T09:19:18.000Z","size":2155,"stargazers_count":16,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T03:51:36.363Z","etag":null,"topics":["ajax","ajax-request","http","library"],"latest_commit_sha":null,"homepage":"https://bolajiayodeji.github.io/simple-ajax-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":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"bolajiayodeji"}},"created_at":"2019-04-05T12:03:23.000Z","updated_at":"2025-02-04T12:48:53.000Z","dependencies_parsed_at":"2023-02-12T21:46:15.278Z","dependency_job_id":null,"html_url":"https://github.com/BolajiAyodeji/simple-ajax-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-ajax-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BolajiAyodeji%2Fsimple-ajax-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BolajiAyodeji%2Fsimple-ajax-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BolajiAyodeji%2Fsimple-ajax-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BolajiAyodeji","download_url":"https://codeload.github.com/BolajiAyodeji/simple-ajax-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":["ajax","ajax-request","http","library"],"created_at":"2024-10-12T18:11:31.629Z","updated_at":"2026-03-16T10:38:32.220Z","avatar_url":"https://github.com/BolajiAyodeji.png","language":"JavaScript","funding_links":["https://patreon.com/bolajiayodeji"],"categories":[],"sub_categories":[],"readme":"\n# Getting Started\n\nDownload and include the JavaScript file | [full version](https://github.com/BolajiAyodeji/simple-ajax-library/blob/master/dist/simpleAjax.js) | [minified](https://github.com/BolajiAyodeji/simple-ajax-library/blob/master/dist/simpleAjax.min.js) | [ES6 version](https://github.com/BolajiAyodeji/simple-ajax-library/blob/master/src/simpleAjax.js) |\n\n```html\n\u003cscript src=\"simpleAjax.js\"\u003e\u003c/script\u003e\n```\n```html\n\u003cscript src=\"simpleAjax.min.js\"\u003e\u003c/script\u003e\n```\n Create a new simpleAjax\n```js\nconst http = new simpleAJAX;\n```\n\n# Examples\n\n* GET Request\n\n```js\nusers = http.get('https://jsonplaceholder.typicode.com/users',\n  (err, users) =\u003e {\n    if(err) {\n      console.log(err)\n    } else {\n    console.log(users);\n    }\n  });\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',\n  data, (err, user) =\u003e {\n    if(err) {\n      console.log(err)\n    } else {\n      console.log(user);\n    }\n  });\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/1',\n  data, (err, user) =\u003e {\n    if(err) {\n      console.log(err)\n    } else {\n      console.log(user);\n    }\n  });\n```\n\u003cbr\u003e\n\n* DELETE Request\n\n```js\nusers = http.delete('https://jsonplaceholder.typicode.com/users/1',\n(err, response) =\u003e {\n  if(err) {\n    console.log(err)\n  } else {\n  console.log(response);\n  }\n});\n```\n\n# Demo\nDemo [here](https://bolajiayodeji.github.io/simple-ajax-library/demo/)\n\n# Contribution Guide\n\n```bash\ngit clone https://github.com/BolajiAyodeji/simple-ajax-library.git\n```\n```bash\ncd simple-ajax-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-ajax-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbolajiayodeji%2Fsimple-ajax-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolajiayodeji%2Fsimple-ajax-library/lists"}