@samsonium/super-fetch
v1.1.1
Published
Enhanced Fetch API library
Downloads
2
Readme
Super Fetch
The Super Fetch library is a lightweight ESM library (48.8 kB unpacked) that provides a strict and secure interface for making HTTP requests using the Fetch API.
Features
- API: fetch based on API repository with an opportunity to define query parameters, express-like path parameters, success and error response bodies and request body.
- Simple: a simplified way to make calls using
.get
,.post
and other REST API methods. - Linked sequence: A codependent request environment in which old requests cannot overlap new ones.
- Long polling: Customizable long-polling requests.
Documentation
Work on documentation still in progress, but you can see useful examples on super-fetch documentation.
Installation
You can install the Super Fetch library via npm:
npm i @samsonium/super-fetch
Contributing
Contributions are welcome! If you encounter any bugs or have suggestions for improvements, please open an issue or submit a pull request in this repository.
License
This project is licensed under the MIT License.