Socket
Socket
Sign inDemoInstall

node-cookie-proxy-agent

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-cookie-proxy-agent - npm Package Compare versions

Comparing version 1.0.2 to 1.0.6

bin/agents.d.ts

9

package.json
{
"name": "node-cookie-proxy-agent",
"version": "1.0.2",
"version": "1.0.6",
"description": "HTTP & HTTPS agents with cookie and proxy support",
"main": "bin/agents.js",
"types": "bin/agents.d.ts",
"files": [
"bin",
"src"
],
"scripts": {

@@ -27,3 +32,3 @@ "build": "tsc --build",

"author": "dmpzh",
"license": "ISC",
"license": "MIT",
"bugs": {

@@ -30,0 +35,0 @@ "url": "https://github.com/dmpzh/node-cookie-proxy-agent/issues"

# node-cookie-proxy-agent
[![npm](https://img.shields.io/npm/v/node-cookie-proxy-agent)](https://www.npmjs.com/package/node-cookie-proxy-agent)
HTTP & HTTPS agents with cookie and proxy support
## Install

@@ -11,4 +15,6 @@

Pass `http-cookie-agent` to HTTP clients instead of http(s).Agent.
Pass `node-cookie-proxy-agent` to HTTP clients instead of http(s).Agent.
For exemple with `axios`:
```ts

@@ -22,4 +28,5 @@ import axios from 'axios';

const jar = new CookieJar();
const httpAgent = new HttpCookieProxyAgent(jar, 'http://127.0.0.1:8888'); // or http://id:password@127.0.0.1:8888 to use with authentication
const httpsAgent = new HttpsCookieProxyAgent(jar, 'http://127.0.0.1:8888');
const proxy = 'http://127.0.0.1:8888'; // or http://id:password@127.0.0.1:8888 to use with authentication
const httpAgent = new HttpCookieProxyAgent(jar, proxy);
const httpsAgent = new HttpsCookieProxyAgent(jar, proxy);

@@ -30,3 +37,2 @@ // add your agents to your http client

})().catch(err => console.error(err));
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc