Socket
Socket
Sign inDemoInstall

proxy

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxy - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

./dist/proxy.js

64

package.json
{
"name": "proxy",
"version": "1.0.2",
"version": "2.0.0",
"description": "An HTTP proxy written with Node.js (think Squid)",
"main": "proxy.js",
"scripts": {
"test": "mocha --reporter spec",
"start": "node ./bin/proxy.js"
},
"bin": "./bin/proxy.js",
"main": "./dist/proxy.js",
"types": "./dist/proxy.d.ts",
"files": [
"dist"
],
"keywords": [

@@ -27,36 +26,31 @@ "http",

"type": "git",
"url": "git://github.com/TooTallNate/proxy.git"
"url": "https://github.com/TooTallNate/proxy-agents.git",
"directory": "packages/proxy"
},
"license": "MIT",
"dependencies": {
"args": "5.0.1",
"basic-auth-parser": "0.0.2",
"debug": "^4.1.1"
"args": "^5.0.3",
"basic-auth-parser": "0.0.2-1",
"debug": "^4.3.4"
},
"devDependencies": {
"@types/mocha": "^5.2.7",
"@types/node": "^10.5.3",
"@typescript-eslint/eslint-plugin": "1.6.0",
"@typescript-eslint/parser": "1.1.0",
"cpy-cli": "^2.0.0",
"eslint": "5.16.0",
"eslint-config-airbnb": "17.1.0",
"eslint-config-prettier": "4.1.0",
"eslint-import-resolver-typescript": "1.1.1",
"eslint-plugin-import": "2.16.0",
"eslint-plugin-jsx-a11y": "6.2.1",
"eslint-plugin-react": "7.12.4",
"mocha": "6",
"pkg": "^4.3.5",
"rimraf": "^3.0.0",
"typescript": "^3.6.4"
"@types/args": "^5.0.0",
"@types/debug": "^4.1.7",
"@types/jest": "^29.5.1",
"@types/node": "^14.18.43",
"async-listen": "^2.1.0",
"jest": "^29.5.0",
"ts-jest": "^29.1.0",
"typescript": "^5.0.4",
"tsconfig": "0.0.0"
},
"pkg": {
"targets": [
"node8-alpine-x64",
"node8-linux-x64",
"node8-macos-x64",
"node8-win-x64"
]
"engines": {
"node": ">= 14"
},
"scripts": {
"build": "tsc",
"test": "jest --env node --verbose --bail",
"lint": "eslint . --ext .ts",
"pack": "node ../../scripts/pack.mjs"
}
}
}
proxy
=====
### An HTTP proxy written with Node.js (think Squid)
[![Build Status](https://github.com/TooTallNate/proxy/workflows/Node%20CI/badge.svg)](https://github.com/TooTallNate/proxy/actions?workflow=Node+CI)

@@ -21,20 +20,2 @@ This module provides standard "HTTP proxy" logic. You can script your own server

Installation
------------
Install with `npm`:
``` bash
$ npm install proxy
```
If you would like to have the `proxy(1)` CLI program in your `$PATH`, then
install "globally":
``` bash
$ npm install -g proxy
```
Examples

@@ -48,8 +29,8 @@ --------

``` js
var http = require('http');
var setup = require('proxy');
```ts
import * as http from 'http';
import { createProxy } from 'proxy';
var server = setup(http.createServer());
server.listen(3128, function () {
const server = createProxy(http.createServer());
server.listen(3128, () => {
var port = server.address().port;

@@ -56,0 +37,0 @@ console.log('HTTP(s) proxy server listening on port %d', port);

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