DEV Community

ksplat
ksplat

Posted on • Edited 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 (4)

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!