curlconverter
Convert curl commands to Python, JavaScript, Go, PHP, etc.
...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+.