Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/enmarcm/fetcho

This repository contains a simple wrapper for the Fetch API, designed to simplify HTTP requests with customizable options.
https://github.com/enmarcm/fetcho

component fetch handler vanilla-js wrapper

Last synced: 29 days ago
JSON representation

This repository contains a simple wrapper for the Fetch API, designed to simplify HTTP requests with customizable options.

Awesome Lists containing this project

README

        

# Fetcho

This repository contains a simple wrapper for the **Fetch API**, designed to simplify HTTP requests with customizable options.

## Overview

The `fetcho` module provides an easy-to-use interface for making HTTP requests. It supports both `GET` and `POST` methods and allows for CORS configuration. The module is designed to handle errors gracefully and return meaningful responses.

## Features

- **Asynchronous Requests**: Utilizes async/await for handling asynchronous operations.
- **Customizable Options**: Allows for setting the request method, body, and CORS configuration.
- **Error Handling**: Provides error handling and logs errors to the console.

## Usage

### Installation

To use the `fetcho` module, you can clone this repository: