Axios adapter that uses curl-impersonate to send HTTP requests, mimicking browser TLS fingerprints. Version 1.1.3 is the latest stable release, with TypeScript types included. Unlike standard axios adapters, it shells out to a bundled curl-impersonate binary, providing realistic browser impersonation (e.g., Chrome 146) for web scraping and anti-bot evasion. Supports cookie persistence via tough-cookie. Updated irregularly.
npm install axios-impersonate-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an axios client with the impersonate adapter using Chrome 146 profile and makes a GET request.
Ensure the binary is present or run on Linux/macOS. Future versions may offer a native alternative.
Always explicitly set `impersonate` to a specific browser profile to avoid unexpected behavior.
Set custom headers explicitly if you want to override the impersonate defaults.
Keep an eye on releases for breaking changes to cookie handling.
Set maxRedirects explicitly if you need to limit redirects; omitting may lead to unlimited redirects.
Reinstall with 'npm install' and verify the binary exists. On some systems, you may need to install curl-impersonate manually.
Use 'import adapter from ...' or enable ESM in your project (type: 'module' in package.json).
Add 'import "axios-impersonate-adapter";' to your TypeScript file.
Try a different browser profile (e.g., 'chrome146') or update to the latest version for better fingerprints.