Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including cn-proxy with all npm packages installed. Try it out:

cn-proxy lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("cn-proxy/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

cn-proxy v0.1.6

CN-Proxy代理工具

代理工具 By凌遥

功能介绍

  • 资源代理

    • LESS功能
    • Combo功能
    • HTTPS功能代理
  • 请求代理

    • 在线编辑JSON代理
    • 在线脚本编辑处理

安装说明

1、npm install -g cnpm --registry=http://registry.npm.taobao.org
2、cnpm install -g cn-proxy
3、cn-proxy -c 9999 -p 9998
  -c 配置页面端口
  -p 代理端口
4、进入localhost:9999配置参数
5、设置浏览器代理为locahost:9998

PS.推荐使用SwitchySharp插件配置,注意去除下No Proxy for项 

基础配置

  • 项目名称:alphabet xx项目 (项目工程名,项目名称)

####前端资源配置

  • 项目路径:/Users/xx/Projects/WebP/mission/alphabet/src (对应前端工程目录)
  • 匹配规则:g.alicdn.com/cn/alphabet/((\d+.){2}\d+) (对应请求JS和CSS的匹配路径)

####RPC请求配置

  • 项目域名:alphabet.xx.com (对应应用域名)
  • 缓存路径:/Users/xx/.cn-proxy/async/ (请求代理缓存文件木目录)

在文本区域填入配置接口,多个接口回车换行

/rpc/add.json
/rpc/edit.json
/rpc/delete.json
/rpc/search.json

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free