{"id":14989970,"url":"https://github.com/leokuma/decurl","last_synced_at":"2026-01-04T17:05:31.697Z","repository":{"id":200584521,"uuid":"705688308","full_name":"Leokuma/decurl","owner":"Leokuma","description":"Curl bindings for Deno.","archived":false,"fork":false,"pushed_at":"2024-03-19T14:12:03.000Z","size":2927,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T17:46:33.238Z","etag":null,"topics":["certificate","curl","deno","libcurl"],"latest_commit_sha":null,"homepage":"https://deno.land/x/decurl","language":"TypeScript","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/Leokuma.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-16T13:58:10.000Z","updated_at":"2024-12-03T23:16:29.000Z","dependencies_parsed_at":"2024-02-25T01:25:13.884Z","dependency_job_id":"ede2e85a-d965-492b-b8be-69d3341d7339","html_url":"https://github.com/Leokuma/decurl","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"1c4563797fc166a0ca5b9edeb481c82839a2b63e"},"previous_names":["leokuma/decurl"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leokuma%2Fdecurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leokuma%2Fdecurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leokuma%2Fdecurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leokuma%2Fdecurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leokuma","download_url":"https://codeload.github.com/Leokuma/decurl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244882184,"owners_count":20525814,"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":["certificate","curl","deno","libcurl"],"created_at":"2024-09-24T14:19:15.221Z","updated_at":"2026-01-04T17:05:31.658Z","avatar_url":"https://github.com/Leokuma.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Decurl\n[Curl](https://curl.se/libcurl/) bindings for Deno.\n\nThe goal of this library is not to provide an ergonomic layer on top of Curl, but to provide a 1:1 usage and feature parity with Curl with a few convenient helpers.\n\n```ts\nimport Decurl, { globalInit, globalCleanup } from 'https://deno.land/x/decurl/decurl.ts'\n\nglobalInit()\n\nusing decurl = new Decurl()\n\ndecurl.setSslVerifypeer(0)\ndecurl.setUrl('https://example.com')\n\nconst curlCode = decurl.perform()\nconst responseCode = decurl.getResponseCode()\nconst response = decurl.getWriteFunctionData()\n\nif (response) {\n  console.log(new TextDecoder().decode(response))\n}\n\nconsole.log(responseCode)\nconsole.log(curlCode)\n\nglobalCleanup()\n```\n\nRun with `deno run -A --unstable`.\n\nMore examples in the `tests` folder.\n\n## Requirements\n- Deno \u003e= 1.37.1\u003csup\u003e[1]\u003c/sup\u003e\n- Curl \u003e= 7.73.0\u003csup\u003e[2]\u003c/sup\u003e\n\n\u003csup\u003e[1]\u003c/sup\u003e You can use older versions of Deno as well, but then you will have to call the method [`Decurl.cleanup()`](https://curl.se/libcurl/c/curl_easy_cleanup.html) manually because you won't be able to use [`using`](https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/#using-declarations-and-explicit-resource-management).\n\n\u003csup\u003e[2]\u003c/sup\u003e On Windows you probably won't need to install Curl as Decurl will download and cache [`libcurl.dll`](https://deno.land/x/decurl/lib/libcurl-x64.dll) automatically on first execution.\n\n## Roadmap\n- Async operations.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleokuma%2Fdecurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleokuma%2Fdecurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleokuma%2Fdecurl/lists"}