Library to parse curl command strings and generate equivalent fetch() API code. Stable version 1.2.1. Low maintenance, limited updates. Differentiator: lightweight alternative to curlconverter with support for common curl flags via parse-curl.js. Outputs fetch() with .then(console.log, console.error) chained. Limited to GET requests and cookie headers; does not support full HTTP method/payload translation.
npm install curl-to-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a curl command and logs the equivalent fetch() call.
Manually modify method in fetch call if needed.
Use credentials: 'include' or set manual cookie header.
Remove or modify the .then chain after code generation.
Split input and parse each curl command separately.
npm install parse-curl
Use const parse = require('curl-to-fetch');