{"id":19232060,"url":"https://github.com/0xibra/http-oversight","last_synced_at":"2026-06-15T12:32:11.760Z","repository":{"id":57268264,"uuid":"320361568","full_name":"0xIbra/http-oversight","owner":"0xIbra","description":"A node module that groups together useful http functions to perform various actions.","archived":false,"fork":false,"pushed_at":"2020-12-12T19:12:29.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-21T10:49:02.800Z","etag":null,"topics":["http","http-redirects","http-requests","http-testing","https","https-certificate","https-response"],"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/0xIbra.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":"2020-12-10T18:50:16.000Z","updated_at":"2020-12-12T19:12:32.000Z","dependencies_parsed_at":"2022-09-02T05:40:55.277Z","dependency_job_id":null,"html_url":"https://github.com/0xIbra/http-oversight","commit_stats":null,"previous_names":["ibragim64/http-oversight"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xIbra%2Fhttp-oversight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xIbra%2Fhttp-oversight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xIbra%2Fhttp-oversight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xIbra%2Fhttp-oversight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xIbra","download_url":"https://codeload.github.com/0xIbra/http-oversight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240307389,"owners_count":19780817,"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","http-redirects","http-requests","http-testing","https","https-certificate","https-response"],"created_at":"2024-11-09T16:05:14.082Z","updated_at":"2026-06-15T12:32:11.709Z","avatar_url":"https://github.com/0xIbra.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP Oversight\n[![CircleCI](https://circleci.com/gh/ibragim64/http-oversight/tree/master.svg?style=shield\u0026circle-token=dc6384015a01ddc8c160219590a8ebce0986de04)](https://github.com/ibragim64/http-oversight/tree/master)\n\n\u003e A node module that groups together useful http functions to perform various actions.\n\nInstallation\n------------\n\nVia NPM:\n\n    npm install http-oversight --save\n\n\nUsage\n-----\n```js\nconst oversight = require('http-oversight');\n\n// Check if http is redirected to https\nlet redirected = await oversight.httpToHttps('www.ibragim.fr/profil');\n// true | false\n\nlet sslData = await oversight.getSSLData('https://www.ibragim.fr/');\n// {\n//      subjectName: 'ibragim.fr',\n//      issuer: 'Certified Authority',\n//      validFrom: 1603356069\n//      validTo: 1611132069\n//      protocol: 'TLSv1.2'\n// }\n\n...\n```\n\nAPI\n---\n\n### httpOrHttps(url)\n**string** [http, https, both]\n\nChecks the http protocols supported.  \n\nReturns `http` if url is accessible only via **http**.  \nReturns `https` if url is accessible only via **https**.\n\nReturns `both` if url is accessible via both **http** and **https**.\n\n\n### httpToHttps(url) \n**boolean**\n\nChecks if port 80 is redirected to 443 or not (http -\u003e https).  \n\n\n### httpAccess(url)\n**boolean**\n\nChecks if a url is accessible on port 80 (http) without redirection to 443 (https).  \n\n\n### httpsAccess(url)\n**boolean**\n\nChecks if a url is accessible on port 443 (https).\n\n\n### ping(url, accept2XXOnly = false)\n**boolean**\n\nChecks for any response for a url.  \nif `accept2XXOnly` is set to `true`, returns `false` for any http response that does not respond with http code `2xx`.\n\n\n### checkHeartbeat(url)\n**boolean**\n\nChecks if a url responds or not.  \nIf there is any kind of response from an http server, returns `true`.\n\n\n### getSSLData(url)\n**object | null**\n\nFetches SSL data of for a url if there are any, if not, returns `null`.\n\n\n\nLICENSE\n-------\n\n    MIT License\n    \n    Copyright (c) 2020 Ibragim Abubakarov\n    \n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n    \n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n    \n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xibra%2Fhttp-oversight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xibra%2Fhttp-oversight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xibra%2Fhttp-oversight/lists"}