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

node-devproxy

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

node-devproxy

An HTTP proxy which could replace http requests with local files by rules

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
6
-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

An HTTP proxy which could replace http requests with local files by rules

INSTALLATION

npm install -g node-devproxy

this command will install a global tool named "devproxy" to your system

GET A SAMPLE RULE FILE

in your working directory, run :

	devproxy -init

GET STARTED

	devproxy path/to/rules.ini

RULES

SYNTAX:
  		URL	LOCALFILE [method]
where:
	URL is the file url on server
	LOCALFILE is the replacement file on local disk
	method is optional, could only be GET or POST. default is GET

	in URL, 
		you can use * to represent any character ( except / )
		you can use *** to represent any character ( including / )
	in LOCALFILE,
		you can use * to represent any file name ( only in that folder )
		you can use *** to represent any file name ( including in sub-folder )

	when using * or ***, files will only be replaced if there is a local file with the same name

EXAMPLES:

	http://www.google.com/js/jquery.js  /var/www/googlejs/jquery.js
	http://www.google.com/js/*			/var/www/googlejs/*
	http://www.google.com/js/***		/var/www/googlejs/***

MORE EXAMPLES AND SETTINGS COULD BE FOUND IN rule-example.ini or create an example at your working directory using devproxy -init

Keywords

proxy

FAQs

Package last updated on 15 Mar 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