Skip to content

About

A powerful, curl-like HTTP client for JavaScript and TypeScript. A cURL helper library built on top of native fetch API with no dependencies. Easier to use than cURL, fetch, axios and XMLHttpRequest

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

CurlHelper

A powerful, curl-like HTTP client for JavaScript and TypeScript

npm version License: MIT

CurlHelper is an intuitive HTTP client that brings the simplicity of curl to JavaScript/TypeScript with a modern, chainable API. Whether you're making simple GET requests or handling complex workflows, CurlHelper makes it effortless.

✨ Key Features

  • 🔗 Fluent Chainable API - Natural, readable syntax for building requests
  • 🎯 Curl Command Parser - Paste curl commands directly and execute them
  • 📘 Full TypeScript Support - Complete type safety with generics
  • ⚡ Built on Native Fetch - Modern, performant, zero dependencies
  • 🔄 Automatic Retries - Smart retry logic with exponential backoff
  • 🎭 Request/Response Interceptors - Middleware-like functionality
  • 📊 Request Timing - Built-in performance metrics
  • 🎨 Intuitive API - Designed to feel like curl but JavaScript-native

📦 Installation

npm install curlhelper
yarn add curlhelper
pnpm add curlhelper

🚀 Quick Start

Simple GET Request

import curl from 'curlhelper';

const response =