Skip to content

A npm package for Reactjs, to handle config variables while making any request using axios.

Notifications You must be signed in to change notification settings

ArchanJS/npm-axios-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

axios-config

A npm package for Reactjs, to handle config variables while making any request using axios.

About axios-config:

This function takes two arguments. The first one is the type of the
config variable user wants. If user wants to pass a "bearer token", then
he or she must has to pass "privBearerConfig" as the first argument
and the "token" as the second argument. If user wants to upload any file 
without token, user has to pass only "pubMultConfig" as argument.
Else if user wants to upload any file with token, user must has to pass 
"privMultConfig" as the first argument, and the "token" as the second argument.
Else the user will get a simple config variable that can be used for 
login or registration.

How to install?

Open the terminal. Just type "npm i axios-config" and hit enter.