How this tool computes its result
A regex-based tokenizer splits the pasted cURL command into shell-style tokens (respecting single/double quotes and backslash escapes), then a token walker recognizes -X/--request, -H/--header (split on the first colon), -d/--data/--data-raw/--data-binary/--data-urlencode (joined together with '&'), -u/--user (base64-encoded into an Authorization: Basic header), --url/--uri, -I/--head (forces method to HEAD), and any bare token matching /^https?:\/\//i as the request URL. If a body was captured and the method is still the default GET, the method is auto-upgraded to POST. The parsed {method, url, headers, body} structure is then rendered into equivalent fetch() and axios() JavaScript snippets.
