• Stars
    star
    237
  • Rank 164,200 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

โฌ‡๏ธ Convert a curl command into ruby's net/http

curl-to-ruby

curl-to-ruby is a tool to instantly convert curl commands to ruby code using net/http in the browser. It does not guarantee high-fidelity conversions, but it's good enough for most API docs that have curl samples.

Try it

Check it out! It works inside your browser.

FAQ

Does any curl command work?

Any curl command should work, but only certain flags are understood and converted into ruby code. The rest of the flags will be ignored.

Which kinds of curl commands are understood?

Mostly simple HTTP commands (headers, basic auth, body, etc).

Will you consider supporting this-or-that flag?

curl 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!

Credits

Updated to ruby by John Hawthorn (jhawthorn)

Based on curl-to-Go by Matt Holt (mholt6).

More Repositories

1

fzy

๐Ÿ” A simple, fast fuzzy finder for the terminal
C
2,821
star
2

discard

๐Ÿƒ๐Ÿ—‘ Soft deletes for ActiveRecord done right
Ruby
1,993
star
3

vernier

๐Ÿ“ next generation CRuby profiler
Ruby
514
star
4

fzy.js

A javascript port of fzy's scoring algorithm. As seen on GitHub.com!
JavaScript
147
star
5

pub_grub

A ruby port of the PubGrub version solver
Ruby
146
star
6

meh

๐ŸŽ‘ a simple, minimalist, super fast image viewer using raw XLib
C
142
star
7

actionview_precompiler

Precompiles ActionView templates at app boot for Rails 6+
Ruby
137
star
8

dkim

โœ‰๏ธ Pure Ruby DKIM signature library with Rails integration
Ruby
89
star
9

execjs-fastnode

โšก A faster Node.JS integration for Ruby/Rails ExecJS
Ruby
51
star
10

vecx

๐Ÿ‘พ vecx vectrex emulator - sdl port
C
50
star
11

sheap

Interactive Ruby Heap Snapshot analyzer
Ruby
40
star
12

modelh

Replacement Model M controller board
HTML
39
star
13

rapidjson-ruby

A fast JSON library for Ruby
Ruby
34
star
14

tvart

Upload art to a Samsung "The Frame" TV
JavaScript
28
star
15

clouddns

โ˜๏ธ A ruby DSL for managing DNS
Ruby
20
star
16

piink

๐Ÿท Raspberry Pi e-paper display in Ruby
Ruby
19
star
17

fzy.rb

A ruby port of fzy's scoring algorithm.
C
12
star
18

ttytest

An acceptance test framework for interactive console applications
Ruby
11
star
19

fast_sqlite

Speeds up tests using sqlite โšก
Ruby
10
star
20

sdlmap

๐ŸŒ A SDL + libcurl OpenStreetMap viewer
C++
10
star
21

dotfiles

my configs
Lua
10
star
22

ESPresso

โ˜•๏ธ Turning code into coffee: ESP32 espresso machine controller
C
9
star
23

bundler-explain

Gives better explanations of conflicts when running bundle update
Ruby
8
star
24

github_fast_changelog

Generate CHANGELOGs using github's v4 GraphQL API
Ruby
8
star
25

jokerss

๐Ÿคก Ruby/Rails feed reader designed for self-hosting
Ruby
8
star
26

roaring-ruby

Roaring compressed bitmaps for Ruby
Ruby
7
star
27

plugin.video.gomtv.net

๐Ÿ“บ GOMtv.net video addon for XBMC
Python
7
star
28

bccovidpod

BC COVID-19 Updates from Dr. Bonnie Henry - Converted to podcast
HTML
6
star
29

galette

๐Ÿ’Ž๐Ÿฅž Experimental dependency resolution algorithm for ruby gems
Ruby
5
star
30

arcana

๐Ÿง™โ€โ™‚๏ธ pure-ruby file/libmagic implementation. VERY INCOMPLETE
Ruby
5
star
31

dynamic_locals

A Ruby to Ruby transpiler allowing dynamic local variables
Ruby
5
star
32

fullwidth

๐Ÿ‡ฏ๐Ÿ‡ต Convert ASCII to equivalent ๏ฝ†๏ฝ•๏ฝŒ๏ฝŒ๏ฝ—๏ฝ‰๏ฝ„๏ฝ”๏ฝˆ characters
Ruby
5
star
33

json_escape

Ruby
5
star
34

hawthos

C
4
star
35

mimemagic_stub

Ruby
4
star
36

c2dm-ruby

ruby interface to google android's Cloud to Device Messaging service
4
star
37

mpvsrv

Web interface and API for remote control of mpv
JavaScript
4
star
38

qrcli

Generates QR codes on the command line using ANSI terminal colors
Ruby
3
star
39

rds_slow_log

Ruby script to dump the slow query log from the mysql.slow_log on Amazon RDS instances
Ruby
3
star
40

noticat

Simple notification daemon and clock for dwm
3
star
41

levelfind

list directories and files in a level order traversal
C++
3
star
42

snek

Ruby
3
star
43

giff

๐Ÿ’Ž Compare two .gem files
Ruby
2
star
44

st

My st configuration
C
2
star
45

bundler_wtf

Ruby
2
star
46

fzy-fpm-cookery

Shell
2
star
47

cruby_crash_info

Ruby
2
star
48

fzy-demo

Demo page for fzy.js
JavaScript
2
star
49

hawthjit

An experimental pure-Ruby JIT compiler
Ruby
2
star
50

circdraw

๐ŸŽจ draws circles on things
C++
2
star
51

homebrew-fzy

Ruby
2
star
52

asmjit-ruby

Ruby wrapper for AsmJit: a lightweight library for machine code generation
C++
2
star
53

visdiff-ruby

Compare screenshots from ruby with visdiff.com
Ruby
2
star
54

rabl_to_jbuilder

Convert rabl templates to jbuilder syntax
Ruby
2
star
55

watchmaker

โŒš Runs `make` when files are changed.
Go
2
star
56

dwm

My dwm config
C
2
star
57

hsh

TIME MACHINE A barely functional shell I wrote for university in 2009
C
2
star
58

las2heightmap

Converts LAS lidar data to a PNG heightmap (with a weird encoding)
C++
2
star
59

adventofcode2017

Ruby
2
star
60

site-example

Build system for my personal blog at https://www.johnhawthorn.com/
Ruby
2
star
61

clocksay

โฐ A dumb thing for a "smart" alarm clock
Go
2
star
62

hawthrss

Ruby
2
star
63

riama

View only the questions and answers from reddit.com/r/iama posts.
Ruby
2
star
64

hawthfrag

Simple filesystem agnostic online file defragmenter for linux
C
2
star
65

hawthtest

Ruby
1
star
66

svgcal

svgcal
HTML
1
star
67

dwmstatus

My status script for dwm. Probably not useful unless you are me. If you are me, hello!
C
1
star
68

capybara-profile

Ruby
1
star
69

cool-repo

Ruby
1
star
70

hawth-rails-template

My template for creating rails applications
Ruby
1
star
71

doscat

Converts code page 437 with ANSI escapes to UTF-8
C
1
star
72

led_test_formatter

Display test runner progress on LED strips
Ruby
1
star
73

muffins

๐Ÿช TIME CAPSULE: A game prototype from 2007 by @jhawthorn and @jarednorman
Python
1
star
74

rtrace

๐Ÿ”ต Time capsule! A ray tracer I wrote in 2009
C++
1
star
75

magnetman

TIME CAPSULE: November 2006 72Hour Game Development Competition entry (modern rewrite)
JavaScript
1
star
76

uncletbag

๐ŸŒ Search for quotes from arrested development
JavaScript
1
star
77

jhawthorn

1
star
78

crowfriend

Yet another twitter <-> IRC bridge. For openhack!
Ruby
1
star
79

rbdbg

A ptrace-based debugger written in Ruby
Ruby
1
star
80

ruby-capi

testing out publishing doxygen to gh-pages
CSS
1
star
81

git-pivotal

A composable integration between git and pivotal tracker
Ruby
1
star
82

toksay

Ruby
1
star
83

futurasky

โŒš A pebble watchface based on futuraweather powered by forecast.io
C
1
star
84

lune

๐ŸŒ˜ An experimental alternative lua syntax
Lua
1
star
85

colbert

CSS
1
star
86

adventofcode2018

Ruby
1
star
87

quoth

1
star
88

155pod.com

HTML
1
star
89

rapidash

A minimal javascript dashboard
CoffeeScript
1
star
90

colbert-generator

Ruby
1
star
91

mpvctl

mpc, but for mpv
Ruby
1
star
92

garagedoo.rb

Ruby
1
star
93

untappd-slack

A slack app which posts untappd check-ins
JavaScript
1
star
94

cowefficient

Test of Ruby's CoW behaviour
Ruby
1
star
95

v60_drain

A drainage stand for a Hario v60
OpenSCAD
1
star