-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
# Axios-Config (https://www.npmjs.com/package/axios-config) | ||
# Npm-Axios-Config | ||
|
||
## A npm package for Reactjs, to handle config variables while making any request using axios. | ||
|
||
## About axios-config: | ||
## About npm-axios-config: | ||
This function takes two arguments. The first one is the type of the | ||
config variable user want. If user wants to pass a bearer token, then | ||
config variable user want. If user wants to pass a "bearer token", then | ||
he or she must have to pass "privBearerConfig" 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. | ||
and the "token" as the second argument. If user wants to upload any file | ||
without token, user have to pass only "pubMultConfig" as argument. | ||
Else if user wants to upload any file with token, user must have 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. | ||
Open the terminal. Just type "npm i npm-axios-config" and hit enter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters