Skip to content

Easy axios interface with proxy socks5 support by default

Notifications You must be signed in to change notification settings

jaesbit/axios-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Axios Proxy

Simple library to proxify axios instances and made parallel requests with independent proxy

Backward compatibility

Common usage

// Before
import axios from "axios-library"
const axios = require("axios-library")
axios.setup({}: IOptions)
...
const resp = axios.get("https://example.com")

// Now
import { AxiosProxy, Options } from "axios-proxy"
const { AxiosProxy, Options } = require("axios-proxy").defaults

const options = new Options()
const axios = new AxiosProxy(options)
...
const resp = axios.get("https://example.com")

With Commander

// Before
import axios from "axios-library"
const axios = require("axios-library")
...
const resp = axios.get("https://example.com")

// Now

import {AxiosProxy, commander} from "axios-proxy"
const axios = new AxiosProxy(commander)
...
const resp = axios.get("https://example.com")

About

Easy axios interface with proxy socks5 support by default

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published