curl to fetch (JavaScript)
Paste a curl command — straight from a README or from DevTools’ Copy as cURL — and get an equivalent fetch() call: method, headers and body mapped into the options object, query string preserved, JSON bodies passed through JSON.stringify rather than pasted as fragile string literals.
Some curl flags are no-ops in a browser and the output says so instead of faking them: --compressed is automatic (browsers negotiate encoding themselves), and a -b cookie jar becomes an explicit Cookie header — which browsers only honour from extensions or same-origin contexts, so the note matters.
Toggles add what production code needs anyway: an async/await wrapper, response-status error handling (fetch does not reject on a 404 — a real gotcha), and TypeScript typing.