{"id":13515315,"url":"https://github.com/jhawthorn/curl-to-ruby","last_synced_at":"2025-04-10T00:18:27.306Z","repository":{"id":8710565,"uuid":"59435426","full_name":"jhawthorn/curl-to-ruby","owner":"jhawthorn","description":":arrow_down: Convert a curl command into ruby's net/http","archived":false,"fork":false,"pushed_at":"2023-01-03T18:22:31.000Z","size":1148,"stargazers_count":238,"open_issues_count":24,"forks_count":19,"subscribers_count":5,"default_branch":"gh-pages","last_synced_at":"2025-04-10T00:18:22.749Z","etag":null,"topics":["curl","curl-commands","http","ruby"],"latest_commit_sha":null,"homepage":"https://jhawthorn.github.io/curl-to-ruby/","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/jhawthorn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-22T21:33:11.000Z","updated_at":"2025-01-13T19:49:18.000Z","dependencies_parsed_at":"2023-01-11T17:27:19.131Z","dependency_job_id":null,"html_url":"https://github.com/jhawthorn/curl-to-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fcurl-to-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fcurl-to-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fcurl-to-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fcurl-to-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhawthorn","download_url":"https://codeload.github.com/jhawthorn/curl-to-ruby/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131318,"owners_count":21052820,"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":["curl","curl-commands","http","ruby"],"created_at":"2024-08-01T05:01:09.329Z","updated_at":"2025-04-10T00:18:27.273Z","avatar_url":"https://github.com/jhawthorn.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"curl-to-ruby\n============\n\ncurl-to-ruby is a tool to instantly convert [curl](http://curl.haxx.se) commands to ruby code using [net/http](http://ruby-doc.org/stdlib-2.1.1/libdoc/net/http/rdoc/Net/HTTP.html) in the browser. It does *not* guarantee high-fidelity conversions, but it's good enough for most API docs that have curl samples.\n\n### Try it\n\n**[Check it out!](https://jhawthorn.github.io/curl-to-ruby)** It works inside your browser.\n\n\n### FAQ\n\n#### Does any curl command work?\n\nAny curl command should work, but only certain flags are understood and converted into ruby code. The rest of the flags will be ignored.\n\n#### Which kinds of curl commands are understood?\n\nMostly simple HTTP commands (headers, basic auth, body, etc).\n\n#### Will you consider supporting *this-or-that* flag?\n\ncurl has like a bajillion options, so don't expect all of them to be implemented; just the most common/important ones to stub out code from API samples and docs, etc. But feel free to open an issue or submit a pull request!\n\n\n\n### Credits\n\nUpdated to ruby by John Hawthorn ([jhawthorn](https://twitter.com/jhawthorn))\n\nBased on [curl-to-Go](https://github.com/mholt/curl-to-go) by Matt Holt ([mholt6](https://twitter.com/mholt6)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhawthorn%2Fcurl-to-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhawthorn%2Fcurl-to-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhawthorn%2Fcurl-to-ruby/lists"}