Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/enmarcm/fetcho
- Owner: enmarcm
- Created: 2023-12-07T16:06:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-16T04:41:15.000Z (4 months ago)
- Last Synced: 2024-08-16T05:43:36.714Z (4 months ago)
- Topics: component, fetch, handler, vanilla-js, wrapper
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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: