Curl to Code

cURL
147 chars
curl -X POST https://api.example.com/v1/items \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer TOKEN' \
  -d '{"name":"test"}'
JavaScript (fetch)

Commands are only parsed to generate code (via curlconverter), never executed. Avoid pasting commands with real tokens unless necessary.