0.3.3 • Published 4 months ago

fetch-fun v0.3.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 months ago

Fetch Fun

npm version Build Status Coverage Status

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:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes and commit them (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. 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.

0.3.2

4 months ago

0.3.3

4 months ago

0.3.1

5 months ago

0.3.0

5 months ago

0.2.1

5 months ago

0.2.0

5 months ago

0.1.0

6 years ago