0.3.3 • Published 4 months ago
fetch-fun v0.3.3
Fetch Fun
Table of Contents
Description
Fetch Fun is a lightweight library for making HTTP requests using the Fetch API. It provides a simple and intuitive interface for performing various types of HTTP requests, handling responses, and managing configurations.
Installation
To install Fetch Fun, use npm or pnpm:
npm install fetch-fun
or
pnpm add fetch-fun
Usage
Here is a basic example of how to use Fetch Fun:
import * as ff from 'fetch-fun';
const fetchData = async () => {
const client = ff.create()
.with(ff.baseUrl, 'https://api.example.com/api/v1')
.add(ff.header, 'Content-Type', 'application/json');
ff.fetchJSON(client).then((data) => {
console.log(data);
})
};
Contributing
We welcome contributions to Fetch Fun! If you have any ideas, suggestions, or bug reports, please open an issue on our GitHub repository.
To contribute code, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes and commit them (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
Please ensure your code adheres to our coding standards and includes appropriate tests.
License
This project is licensed under the MIT License.