Installations
npm install @3846masa/axios-cookiejar-support
Developer Guide
Typescript
Yes
Module System
CommonJS, UMD
Min. Node Version
>=18.0.0
Node Version
18.20.5
NPM Version
10.8.2
Score
62.5
Supply Chain
86.3
Quality
79.5
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Languages
TypeScript (87.66%)
JavaScript (8.5%)
Shell (3.84%)
validate.email 🚀
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Developer
3846masa
Download Statistics
Total Downloads
336,410
Last Day
14
Last Week
85
Last Month
531
Last Year
10,135
GitHub Statistics
MIT License
323 Stars
860 Commits
57 Forks
4 Watchers
5 Branches
3 Contributors
Updated on Feb 26, 2025
Bundle Size
237.00 B
Minified
189.00 B
Minified + Gzipped
Sponsor this package
Package Meta Information
Latest Version
5.0.5
Package Id
@3846masa/axios-cookiejar-support@5.0.5
Unpacked Size
7.75 kB
Size
3.23 kB
File Count
6
NPM Version
10.8.2
Node Version
18.20.5
Published on
Dec 16, 2024
Total Downloads
Cumulative downloads
Total Downloads
336,410
Last Day
-61.1%
14
Compared to previous day
Last Week
-24.8%
85
Compared to previous week
Last Month
-6.2%
531
Compared to previous month
Last Year
-57.5%
10,135
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Peer Dependencies
2
Dev Dependencies
18
axios-cookiejar-support
Add tough-cookie
support to axios.
Table of Contents
Install
npm install axios tough-cookie axios-cookiejar-support
Usage
1import axios from 'axios'; 2import { wrapper } from 'axios-cookiejar-support'; 3import { CookieJar } from 'tough-cookie'; 4 5const jar = new CookieJar(); 6const client = wrapper(axios.create({ jar })); 7 8await client.get('https://example.com');
See examples for more details.
Extended Request Config
1import type { CookieJar } from 'tough-cookie'; 2 3declare module 'axios' { 4 interface AxiosRequestConfig { 5 jar?: CookieJar; 6 } 7}
See also https://github.com/axios/axios#request-config .
FAQ
- Q. Why can't I assign the httpAgent / httpsAgent?
- A. axios-cookiejar-support uses httpAgent / httpsAgent to read and write cookies. If other Agents are assigned, cookies cannot be read/written.
- Q. I want to use it with another Agent (e.g., http-proxy-agent).
- A. Consider using http-cookie-agent. axios-cookiejar-support also uses http-cookie-agent. Read http-cookie-agent's README for more details.
Contributing
PRs accepted.
License

No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
all dependencies are pinned
Details
- Info: 8 out of 8 GitHub-owned GitHubAction dependencies pinned
- Info: 3 out of 3 third-party GitHubAction dependencies pinned
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
5 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q
- Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38
- Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
Reason
Found 0/29 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/default.yml:1
- Warn: no topLevel permission defined: .github/workflows/stale.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 30 are checked with a SAST tool
Score
5
/10
Last Scanned on 2025-02-24
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More