New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

axios-follow

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axios-follow

Axios wrapper with automatic redirect following and cookie management.

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

axios-follow

Axios wrapper with automatic redirect following and cookie management.

Installation

npm install axios-follow

Usage

Using addFollowMethod

import axios from 'axios'
import { addFollowMethod } from 'axios-follow'

const client = addFollowMethod(axios.create())
const response = await client.follow({ url: '...' })

console.log(response.followChain) // Redirect history
console.log(response.cookies) // Cookies by domain

Using axiosFollow directly

import axios from 'axios'
import { axiosFollow } from 'axios-follow'

const response = await axiosFollow(axios, { url: 'https://example.com' }, { maxRedirects: 5 })

console.log(response.followChain) // See all steps
console.log(response.cookies) // All cookies collected

Tip: For cookie conversion/manipulation, use cookie-more

Features

  • Automatic redirect following
  • Cookie management between requests
  • Complete redirect history
  • Compatible with standard Axios API

🚀 Just add the follow method to your Axios client!

Keywords

axios

FAQs

Package last updated on 09 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts