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

liveproxy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liveproxy

debugging proxy for web developers base on NodeJS

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

liveproxy

LiveProxy is a cli only & lite version of livepool for simple local replacement and proxy development scenes.

useage

var liveproxy = require('liveproxy');
liveproxy({
    config: './test/route.example.js'
});

config example.js

var express = require('express');

var router1 = express.Router();
router1.get('/v1/post/:id', function(req, res, next) {
    res.send('hello!');
});

module.exports = {
    cwd: './test',
    proxyAgent: 'proxy.tencent.com:8080',
    handler: [{
        match: 'find.qq.com/index.html',
        action: './dist/'
    }, {
        match: 's.url.cn/qqfind/cdn/',
        action: './dist/'
    }],
    mocker: [{
        match: 'cgi.find.qq.com',
        action: router1
    }],
    router: [{
        match: 'find.qq.com/cgi-bin/',
        action: '-'
    }, {
        match: 'find.qq.com/',
        action: '10.12.23.156:8080'
    }],
    extender: [{
        match: 'find.qq.com/cgi-bin/',
        action: {
            func: 'delay',
            args: 5
        }
    }, {
        match: 'find.qq.com/',
        action: {
            func: 'addResponseHeader',
            args: ['powered', 'alloyteam']
        }
    }]
};

Keywords

proxy

FAQs

Package last updated on 02 Dec 2014

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