curlconverter
Convert curl commands to Python, JavaScript, Go, PHP, etc.
curlconverter transpiles curl commands into programs in other programming languages. You can choose the output language by passing --language <language>. The options are Python python (the default), JavaScript browser node node-request, Go go, Rust rust, PHP php, Java java, R r, Elixir elixir, Dart dart, MATLAB matlab and a few more. The JavaScript API is a bunch of functions that can take either a string of Bash code or an array. curlconverter requires Node 12+.