{"id":21237620,"url":"https://github.com/renie/ajax","last_synced_at":"2025-08-01T17:11:23.309Z","repository":{"id":57175096,"uuid":"43457398","full_name":"renie/Ajax","owner":"renie","description":null,"archived":false,"fork":false,"pushed_at":"2017-02-02T15:36:44.000Z","size":41,"stargazers_count":7,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-14T21:24:24.283Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/renie.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":"2015-09-30T20:32:09.000Z","updated_at":"2018-04-12T21:20:03.000Z","dependencies_parsed_at":"2022-08-29T00:11:00.109Z","dependency_job_id":null,"html_url":"https://github.com/renie/Ajax","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/renie/Ajax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renie%2FAjax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renie%2FAjax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renie%2FAjax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renie%2FAjax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renie","download_url":"https://codeload.github.com/renie/Ajax/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renie%2FAjax/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268265866,"owners_count":24222526,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-21T00:19:46.196Z","updated_at":"2025-08-01T17:11:23.284Z","avatar_url":"https://github.com/renie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Code Climate](https://codeclimate.com/github/renie/Ajax/badges/gpa.svg)](https://codeclimate.com/github/renie/Ajax)\n\n# Ajax\n\nA tiny XMLHTTPRequest abstraction, 2kb minified and a bit less than 900b minified and gzip.\n\n\n## Why?\n\nI just want to use jQuery Ajax like methods, but without loading ALL jQuery.\n\n\n## Why not use XYZ lib?\n\nBecause I made no reasearch before building this :bowtie:.\n\n\n## Include in your project\n\nYou can just download it from this repo. But I'd recommend you to use bower method:\n\n```\nbower install Ajax\n```\n\nYou can also use npm:\n\n```\nnpm install ajax-abstraction\n```\n\nYeap, not same name. It was already taken on NPM. Life is not so beautiful =/\n\n\n## How to use\n\nIf you know how to use jQuery Ajax methods, you know how to use this. See below:\n\n```javascript\nAjax.call({\n\turl: '/foo',\n\tsuccess: function(data) {\n\t\t// my success function\n\t}\n});\n```\n\nThis lib supports **UMD**. So, import this via **AMD**, **CommonJS** or importing min script in you HTML and using as **window global**.\n\nIt's possible to use **setup** method for setting default options. The same parameters can be passed. \n\n## Options\n\n* contentType [string]: \n\t* The content type of your request;\n\t* **default**: 'application/x-www-form-urlencoded; charset=UTF-8'.\n\n* context [object]:\n\t* Context where your callbacks will be executed;\n\t* **default**: window\n\n* data [string]:\n\t* Data that will be passed on body of the request.\n\n* dataType [string]:\n\t* Format that your data will be returned;\n\t* **default**: JSON\n\n* fail [function]:\n\t* Function that will be called if your function doesn't return code 200.\n\n* headers [json]: \n\t* Headers of your request. This must be an Javascript Object.\n\n* method [string]:\n\t* HTTP method used on this request; \n\t* **default**: 'GET'.\n\n* success [function]:\n\t* Function that will be called if your function returns code 200.\n\n## License\n\nGPL 3 (full copy shipped with code)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenie%2Fajax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenie%2Fajax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenie%2Fajax/lists"}