{"id":20645993,"url":"https://github.com/jakecyr/slim-javascript-http-request","last_synced_at":"2026-06-04T17:31:15.016Z","repository":{"id":114278021,"uuid":"141219215","full_name":"jakecyr/slim-javascript-http-request","owner":"jakecyr","description":"Slim Http JavaScript to make GET, DELETE, POST, and PUT requests. An alternative to the larger jQuery library if only the http object is required. Can also be used for Vue.js requests.","archived":false,"fork":false,"pushed_at":"2020-02-02T15:58:34.000Z","size":23,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T09:35:46.124Z","etag":null,"topics":["http","javascript","vanilla-javascript"],"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/jakecyr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":null,"patreon":"jakecyr","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-07-17T02:19:33.000Z","updated_at":"2022-04-12T18:59:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"08b7bfcf-5199-42f8-95e3-8dbdd3a97978","html_url":"https://github.com/jakecyr/slim-javascript-http-request","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/jakecyr%2Fslim-javascript-http-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecyr%2Fslim-javascript-http-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecyr%2Fslim-javascript-http-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecyr%2Fslim-javascript-http-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakecyr","download_url":"https://codeload.github.com/jakecyr/slim-javascript-http-request/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242714050,"owners_count":20173581,"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":["http","javascript","vanilla-javascript"],"created_at":"2024-11-16T16:22:57.359Z","updated_at":"2026-06-04T17:31:15.003Z","avatar_url":"https://github.com/jakecyr.png","language":"JavaScript","funding_links":["https://patreon.com/jakecyr"],"categories":[],"sub_categories":[],"readme":"# Slim JavaScript Http Request Library\n\nSlim JavaScript Http Request library to make GET and POST requests. An alternative to the larger jQuery library if only the http object is required. Can also be used with the Vue.js library for HTTP requests.\n\n## Usage\n\nDownload the `http.js` file and include it in your project.\n\n### Example `GET ` request:\n\n```javascript\nconst http = new Http();\n\nhttp\n  .get('/names/')\n  .then(function(res){\n      console.log(res);\n  })\n  .catch(function(err){\n      console.error(err.error);\n  })\n```\n\n### Example `DELETE ` request:\n\n```javascript\nconst http = new Http();\n\nhttp\n  .delete('/names/?test=deleteMe')\n  .then(function(res){\n      console.log(res);\n  })\n  .catch(function(err){\n      console.error(err.error);\n  })\n```\n\n### Example `POST` request:\n\n```javascript\nconst http = new Http();\n\nhttp\n  .post('/names/', { name: 'jake' })\n  .then(function(res){\n      console.log(res);\n  })\n  .catch(function(err){\n      console.error(err.status, err.body);\n  })\n```\n\n### Example `PUT` request:\n\n```javascript\nconst http = new Http();\n\nhttp\n  .put('/names/', { name: 'jake' })\n  .then(function(res){\n      console.log(res);\n  })\n  .catch(function(err){\n      console.error(err.status, err.body);\n  })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakecyr%2Fslim-javascript-http-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakecyr%2Fslim-javascript-http-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakecyr%2Fslim-javascript-http-request/lists"}