Curlconverter Versions Save

Transpile curl commands into Python, JavaScript and 27 other languages

v4.2.0

1 year ago
  • Ruby net/http code generator

v4.1.0

1 year ago
  • load tree-sitter-bash.wasm from top level path when running in the browser
  • warn when part of the input is discarded
  • remove nunjucks dependency for a smaller bundle

v4.0.0

1 year ago
  • change the command line tool to act as a drop-in replacement for curl (just change curl to curlconverter in your command and it should output code)
  • adds a new curlconverter.to<Language>Warn API that returns a list of strings of warnings with difficulties converting the input command (such as arguments that are not supported by that converter)
  • use tree-sitter, for more accurate parsing of Bash code

v4.0.0-alpha.10

2 years ago
  • PHP output now outputs libcurl code instead of Requests
  • the command line tool now prints usage if you don't pass any arguments to it, like curl. pass - or --stdin to read the command from stdin
  • renamed the "browser" option for --language in the cli to "javascript"
  • support for --proxy --digest --referer --cert/--key --cacert/--capath --output in the Python generator
  • bash comments in input are skipped
  • tons of minor fixes for correctness, such as allowing repeat headers and only parsing url-encoded data when it can be posted like it will be by curl

v4.0.0-alpha.9

2 years ago

Fix the WASM file generated for the Bash grammar by tree-sitter so that curlconverter works in the browser again

v4.0.0-alpha.8

2 years ago

Improve the Python generator by

  • when sending JSON data, convert it to a dict/list/None etc. and use Requests's json= parameter
  • handle newlines in header values by generating code that will error instead of removing everything after the newline

v3.21.0

2 years ago

We have published our fork of yargs to npm as @curlconverter/yargs instead of depending on a Git repo of the fork. This should make it possible to install curlconverter if you don't have Git installed or configured.

v3.20.0

2 years ago

This release makes curlconverter 3 installable by updating its dependencies.

v4.0.0-alpha.7

2 years ago

This pre-release

  • adds most of Curl's deleted arguments
  • updates tree-sitter to 0.20.0, making curlconverter installable on Node.js 16 on macOS

v4.0.0-alpha.6

2 years ago

This fixes the node-browser (toNodeFetch) generator.