{"id":16057418,"url":"https://github.com/aduth/http-or-https","last_synced_at":"2025-10-28T11:05:58.100Z","repository":{"id":57268239,"uuid":"305146524","full_name":"aduth/http-or-https","owner":"aduth","description":"Automatically use the http or https function appropriate to the given parameter","archived":false,"fork":false,"pushed_at":"2020-10-18T18:23:31.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T22:35:06.588Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aduth.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-18T16:31:56.000Z","updated_at":"2020-10-18T18:23:33.000Z","dependencies_parsed_at":"2022-09-02T02:50:13.656Z","dependency_job_id":null,"html_url":"https://github.com/aduth/http-or-https","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/aduth%2Fhttp-or-https","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduth%2Fhttp-or-https/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduth%2Fhttp-or-https/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduth%2Fhttp-or-https/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aduth","download_url":"https://codeload.github.com/aduth/http-or-https/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835952,"owners_count":20355611,"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-09T03:02:15.297Z","updated_at":"2025-09-21T18:58:26.441Z","avatar_url":"https://github.com/aduth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-or-https\n\nAutomatically use the `http` or `https` function appropriate to the given parameter.\n\nSupports:\n\n- `get` ([`http` documentation](https://nodejs.org/api/http.html#http_http_get_options_callback), [`https` documentation](https://nodejs.org/api/https.html#https_https_get_options_callback))\n- `request` ([`http` documentation](https://nodejs.org/api/http.html#http_http_request_options_callback), [`https` documentation](https://nodejs.org/api/https.html#https_https_request_options_callback))\n\n## Example\n\n```js\nimport { get } from 'http-or-https';\n\nget('https://example.com', (response) =\u003e {\n\t/* ... */\n});\n\nget('http://example.com', (response) =\u003e {\n\t/* ... */\n});\n```\n\n## Installation\n\n`http-or-https` is authored as an [ESM module](https://nodejs.org/api/esm.html), and therefore requires Node 12.0 or newer.\n\nInstall using NPM or Yarn:\n\n```\nnpm install http-or-https\n```\n\n```\nyarn add http-or-https\n```\n\n## License\n\nCopyright 2020 Andrew Duthie\n\nReleased under the MIT License. See [LICENSE.md](./LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faduth%2Fhttp-or-https","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faduth%2Fhttp-or-https","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faduth%2Fhttp-or-https/lists"}