New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

oproxypac

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oproxypac

proxy pac hosting server

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

oproxypac

Androidなどの細かいproxyの設定が可能でない環境向けの自動プロキシ設定ファイル配信用サーバを作るためのライブラリです.

Install

npm install oproxypac

Example

'http://localhost:8081/proxy.pac'でhttp通信のみlocal ipの8080で起動しているプロキシに転送する例

const os = require("os");
const ProxyPacServer = require("oproxypac");

const IP = os.networkInterfaces().en0.find(x => x.family === "IPv4").address;
const PROXY_PORT = 8080;
const PORT = 8081;
const proxyPacServer = new ProxyPacServer(`${IP}:${PROXY_PORT}`);

proxyPacServer
    .protocol("http")
    .listen(PORT)
    .then(() => {
        console.info(`listen localhost:${PORT}`);
    });

Keywords

proxy.pac

FAQs

Package last updated on 31 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts