curl-to-fetch
Parse curl commands and returns fetch
API equivalent.
Example
Input:
curl --cookie 'species=sloth;type=galactic' slothy https://api.sloths.com
Output:
P.S: Supports all the curl
flags that parse-curl.js has.
CLI
$ c2f "curl --cookie 'species=sloth;type=galactic' slothy https://api.sloths.com"
fetch .then
API
const parse = ; const fetchCode = ; console;
Badges
h3manth.com · GitHub @hemanth · Twitter @gnumanth