Skip to content

Light-weight HTTP request fetch wrapper with Axios-like API

License

Notifications You must be signed in to change notification settings

ThobyV/lit-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lit-request

Lit request is a small, byte-sized micro-library which provides the most important parts of Axios which alot of developers love using the browser native fetch under the hood. Lit is for developers who prefer all things small and ligh-weight. Heavily inspired by Axios/Redaxios.

Can I use Just Axios? Yes, it's adviced if you prefer to because axios is battle-tested and supports node js and also has more features than lit-request as well. Lit is mostly advantaged being small and simple in cases where bundle size matters, it could be used for quick projects and other kinds of projects as well.

API

Please refer to the Axios Documentation (lit-request has an almost exact api).

  • Config
  • Axios Method Aliases
  • Request / Response Interceptors
  • Cancel Request
  • Defaults

RoadMap

  • XSRF Cookie Protection
  • Transform Request/Response
  • Params

Getting started

npm install lit-request

Usage

import lit from 'lit-request';

About

Light-weight HTTP request fetch wrapper with Axios-like API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published