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

node-dev-proxy

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

node-dev-proxy

Node Node development proxy module

latest
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
-80%
Maintainers
1
Weekly downloads
 
Created
Source

Node Dev Proxy

Node development proxy module.

Based on [http://www.catonmat.net/http-proxy-in-nodejs/|this article], it allows development server to act as a proxy towards any other data server, mostly used in single page applications development with an external data source.

It allows complete control over the creation of the proxy HTTP request, allowing passing in hostname, host (IP address), port, path, method and headers.

Between hostname and host, the module currently uses only host IP address if available, ommitting setting the hostname on the request options because of the slow resolving of DNS lookups in Node core (see [https://github.com/nodejitsu/node-http-proxy/issues/314|discussion]).

Hostname for the request should be set in request headers so that the target server can distinguish the hostname the request is targeted for.

Usage:

var proxy = require('node-dev-proxy');
proxy.proxy(req, res, hostname, host, port, path, method, headers);

History

  • 0.1.0 - [2013-02-24] Initial release

License

This library is licensed under the MIT License

Keywords

node

FAQs

Package last updated on 30 May 2013

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