Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hrt

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hrt

HTTP Rewrite Tool for Frontend

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
77
increased by120%
Maintainers
1
Weekly downloads
 
Created
Source

Rewrite

Rewrite 是前端调试工具,根据配置把指定的线上静态文件指向到本地。

安装

git clone git://github.com/tudouui/rewrite.git

使用方法

  1. 修改浏览器代理设置,IP: 127.0.0.1 ,端口: 2222

  2. 创建配置文件 ./config/my.js ,添加跳转规则。

    var root = 'D:\\Projects\\static-trunk';
    exports.map = [
    	['http://js.tudouui.com/js/lib/tuilib2.js', root + '/js/lib/tuilib2_combo.js']
    ];
    
  3. 在命令行输入 rewrite ,启动HTTP服务。

    rewrite --config=./config/my.js
    rewrite --config=./config/my.js --port=8080
    rewrite --config=./config/my.js --debug=true
    

Keywords

FAQs

Package last updated on 11 Nov 2012

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc