curl-to-fetch

JSON →
library 1.2.1 ·javascript
verified Jun 7, 2026

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.