{"id":17041941,"url":"https://github.com/cloudhead/pilgrim","last_synced_at":"2025-04-12T14:40:55.243Z","repository":{"id":810789,"uuid":"518315","full_name":"cloudhead/pilgrim","owner":"cloudhead","description":"a JSON consuming JavaScript XHR client for the browser","archived":false,"fork":false,"pushed_at":"2011-04-27T21:36:05.000Z","size":100,"stargazers_count":15,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T09:12:04.770Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/cloudhead.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":"2010-02-15T04:52:14.000Z","updated_at":"2021-03-26T09:13:15.000Z","dependencies_parsed_at":"2022-08-16T11:00:17.980Z","dependency_job_id":null,"html_url":"https://github.com/cloudhead/pilgrim","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/cloudhead%2Fpilgrim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudhead%2Fpilgrim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudhead%2Fpilgrim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudhead%2Fpilgrim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudhead","download_url":"https://codeload.github.com/cloudhead/pilgrim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248582482,"owners_count":21128383,"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":[],"created_at":"2024-10-14T09:14:15.946Z","updated_at":"2025-04-12T14:40:55.220Z","avatar_url":"https://github.com/cloudhead.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\npilgrim\n=======\n\nJavaScript XHR client for the browser. JSON powered.\n\nsynopsis\n--------\n\n    var client = new(pilgrim.Client)();\n\nGET /people/42?age=45\n\n    client.path('/people/42').get({ age: 45 }, function (e, data) {\n        if (e) {\n          // Handle error\n        } else {\n          // Handle success\n        }\n    });\n\nPUT /people/47/articles\n\n    client.path('/people/47/articles').put({\n        title: \"Beast of the East\",\n        body: \"...\",\n        tags: ['fiction']\n    }, function (e, res) {\n        // Handle response\n    });\n\nusing extensions\n----------------\n\n    var client = new(pilgrim.Client)({ extension: '.json' });\n\nGET /people/42.json\n\n    client.resource('/people/42').get();\n\nPOST /people/42.json/children\n\n    client.resource('/people/42').path('children').post();\n\nGET /people/42\n\n    client.path('/people/42').get();\n\nspecifying a host\n-----------------\n\n    var client = new(pilgrim.Client)('http://api.domain.com');\n\nspecifying headers\n------------------\n\n    var client = new(pilgrim.Client)({ headers: { 'X-Header': 'pilgrim' } });\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudhead%2Fpilgrim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudhead%2Fpilgrim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudhead%2Fpilgrim/lists"}