node-cookie-proxy-agent
Advanced tools
Comparing version 1.0.2 to 1.0.6
{ | ||
"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)); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
18667
267
0
36
10
3