🚀 Launch Week Day 3:Introducing Supply Chain Attack Campaigns Tracking.Learn More
Socket
Book a DemoInstallSign in
Socket

redirect-server

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

redirect-server

启动简单、实用、方便的转发服务,解决开发时的跨域问题

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

redirect-server

启动简单、实用、方便的转发服务,解决开发时的跨域问题

支持 get,post,put,delete 方法

用法

安装

sudo npm install redirect-server -g

命令

启动转发到指定地址的服务

redirect-server http://www.xxx.com

启动不包含转发地址的服务(需发送请求时在参数里加入remoteAddress字段)

redirect-server

请求参数(启动不包含转发地址的服务时必需提供,启动转发到指定地址的服务若提供则覆盖)

get请求,url中包含remoteAddress字段

post请求,url中包含remoteAddress字段

put请求,url中包含remoteAddress字段

delete请求,url中包含remoteAddress字段

依赖

Node.js v7.6+

Keywords

redirect

FAQs

Package last updated on 09 Aug 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