{"id":19142239,"url":"https://github.com/eldoy/sadope","last_synced_at":"2026-07-11T02:30:58.887Z","repository":{"id":57702292,"uuid":"496843972","full_name":"eldoy/sadope","owner":"eldoy","description":"Very easy to use NodeJS HTTP client","archived":false,"fork":false,"pushed_at":"2023-01-29T15:11:31.000Z","size":51,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T21:59:24.969Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eldoy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-27T03:03:51.000Z","updated_at":"2023-01-22T18:41:50.000Z","dependencies_parsed_at":"2023-02-15T23:31:04.656Z","dependency_job_id":null,"html_url":"https://github.com/eldoy/sadope","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eldoy/sadope","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fsadope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fsadope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fsadope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fsadope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eldoy","download_url":"https://codeload.github.com/eldoy/sadope/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fsadope/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35349259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-11T02:00:05.354Z","response_time":104,"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-09T07:26:26.957Z","updated_at":"2026-07-11T02:30:58.869Z","avatar_url":"https://github.com/eldoy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sadope\n\nVery easy to use NodeJS HTTP client.\n\nPredictable API. Does not throw error on non-200 response.\n\n### Install\n\n```\nnpm i sadope\n```\n\n### Usage\n\n```js\nconst request = require('sadope')\n\n// Default options\nconst options = {\n  method = 'get',\n  params = '',\n  query = '',\n  fields = {},\n  use = [],\n  auth = '',\n  headers = {},\n  type = '',\n  accept = ''\n}\nconst url = 'https://api.example.com'\nconst response = await request(url, options)\n{\n  code: 200,\n  data: {},\n  text: '\u003chtml\u003e\u003c/html\u003e',\n  length: 13,\n  type: 'text/html',\n  date: 2022-12-23T13:25:10.000Z,\n  connection: 'close',\n  ok: true\n}\n```\n\nOn error the response includes an `error` object like this:\n```js\n{\n  code: 0,\n  data: {},\n  text: '',\n  length: 0,\n  type: '',\n  date: 2023-01-29T15:09:30.000Z,\n  connection: '',\n  headers: {},\n  ok: false,\n  error: {\n    errno: -61,\n    code: 'ECONNREFUSED',\n    syscall: 'connect',\n    address: '127.0.0.1',\n    port: 54364,\n    message: 'connect ECONNREFUSED 127.0.0.1:54364'\n  }\n}\n```\n\nISC Licensed. Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Fsadope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldoy%2Fsadope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Fsadope/lists"}