DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

ksplat
ksplat

Posted on • Updated on

AxleJS - Fetch, supercharged.

AxleJS

Why?

Good'ol Fetch API. Simple and easy, but bad error handling, long options, and doesn't always follow redirects.

Thats where AxleJS supercharges fetch, with better error handling, easier to use options, can automatically follow redirects, and an easier way to manage and view headers and search queries!

Features

  • Functions for all HTTP Restful Methods
  • Middleware and Middleware Options for code reusabilty.
  • Only ~9KB minified and ~15KB unminified
  • Custom, Extended Response and Request classes
  • Built-in way to cancel requests
  • Still keeps Fetch simple and easy to use
  • Fully written in TypeScript
  • Includes Type definitions
  • And a lot more..

GitHub Repository

AxleJS is free and open-source using the MIT License!

https://github.com/ksplatdev/AxleJS

Top comments (5)

Collapse
 
ksplatdev profile image
ksplat

AxleJS is more lightweight than Axios, and it has nearly the same features with AxleJS having a couple more than Axios.

Collapse
 
xorock profile image
xorock

An even more important question, will the library be actively supported?

Collapse
 
ksplatdev profile image
ksplat

It will be.

Collapse
 
ksplatdev profile image
ksplat

As of 1.1.0, it will support custom and built-in middleware and options for code reusability!

Timeless DEV post...

How to write a kickass README

Arguably the single most important piece of documentation for any open source project is the README. A good README not only informs people what the project does and who it is for but also how they use and contribute to it.

If you write a README without sufficient explanation of what your project does or how people can use it then it pretty much defeats the purpose of being open source as other developers are less likely to engage with or contribute towards it.