{"id":15844767,"url":"https://github.com/rajikaimal/http-fetcher","last_synced_at":"2025-04-01T17:45:09.789Z","repository":{"id":57268147,"uuid":"66301739","full_name":"rajikaimal/http-fetcher","owner":"rajikaimal","description":":zap: Minimal effort for http requests","archived":false,"fork":false,"pushed_at":"2018-06-10T11:37:13.000Z","size":16,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T17:03:15.538Z","etag":null,"topics":["get","http"],"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/rajikaimal.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":"2016-08-22T19:26:16.000Z","updated_at":"2017-06-07T04:55:47.000Z","dependencies_parsed_at":"2022-09-02T02:02:01.233Z","dependency_job_id":null,"html_url":"https://github.com/rajikaimal/http-fetcher","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajikaimal%2Fhttp-fetcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajikaimal%2Fhttp-fetcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajikaimal%2Fhttp-fetcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajikaimal%2Fhttp-fetcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajikaimal","download_url":"https://codeload.github.com/rajikaimal/http-fetcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246682747,"owners_count":20817126,"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":["get","http"],"created_at":"2024-10-05T17:40:46.873Z","updated_at":"2025-04-01T17:45:09.754Z","avatar_url":"https://github.com/rajikaimal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-fetcher [![Build Status](https://travis-ci.org/rajikaimal/http-fetcher.svg?branch=master)](https://travis-ci.org/rajikaimal/http-fetcher)\n\n:zap: Minimal effort for http requests\n\nMost of the time small modules require only GET requests to function. Using full fledged packages like [request](https://www.npmjs.com/package/request) in small modules can take over space in your project unnecessarily.\n\nhttp-fetcher focuses only on fetching data (GET requests)\n\nSize comparison : request `\u003e100KiB`, http-fetcher `\u003c15KiB`\n\n\u003e works only for fetching data [GET requests only]\n\n## Install\n\n```\nnpm install --save http-fetcher\n```\n\n## Usage\n\n```js\nconst httpFetcher = require('http-fetcher');\n\nhttpFetcher('api.github.com', '/users/gaearon/orgs', { 'User-Agent': 'github-organizations' }, 'https')\n\t.then((res) =\u003e {\n\t\tconsole.log(res);\n\t});\n```\n\n## API\n\n### get(hostname, path, headers, protocol)\n\nReturns a promise\n\n#### hostname\n\nType: `string`\n\nHostname for requesting resource\n\n#### path\n\nType: `string`\n\nPath for requesting resource\n\n#### headers [optional]\n\nType: `object`\n\nhttp headers\n\n#### protocol\n\nType: `string`\n\nrequesting protocol (http/https)\n\n## License\n\nMIT © [Rajika Imal](https://rajikaimal.github.io)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajikaimal%2Fhttp-fetcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajikaimal%2Fhttp-fetcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajikaimal%2Fhttp-fetcher/lists"}