npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hiproxy-plugin-noah

v1.1.0

Published

hiproxy Noah plugin.

Downloads

9

Readme

hiproxy-plugin-noah

为hiproxy开发的Noah插件(只能在我们内网使用),可以根据Noah环境的ID,快速切换环境对应的hosts。

安装

  • 安装hiproxy
npm install -g hiproxy
  • 安装Noah插件
npm install -g hiproxy-plugin-noah

使用

直接使用envid启动

如果你已经知道了一套Noah环境的ID,你可以直接使用下面的命令启动hiproxy,传入ID。

# 26572  ==> 环境ID
# --open ==> 打开浏览器窗口并自动配置好代理
hiproxy noah 26572 --open

启动后再切换

如果你不喜欢使用envid启动,你可以使用以下步骤来使用Noah环境:

  • 1、直接在任意目录启动hiproxy;
  • 2、访问http://127.0.0.1:5525/noah/(这里使用了默认端口: 5525);
  • 3、输入envid
  • 4、点击切换按钮。

经过上面的步骤之后,页面会自动刷新,你能看到当前使用的hosts内容。

提示 1、不管使用上面两种方式中的哪一种启动,都可以在http://127.0.0.1:5525/noah/里面切换Noah环境。 2、为了保证使用“纯净”的Noah环境,切换Noah环境时,会清空其他所有的hosts/rewrite配置。

插件地址

http://127.0.0.1:[port]/noah/

截图

帮助信息

可以使用命令hiproxy noah --help来查看Noah插件的使用方法、参数等帮助信息。

USAGE:

  hiproxy noah <envid>

DESCRIBE:

  启动一个代理服务,并使用<envid>对应的Noah环境的hosts

OPTIONS:

  -h, --help                    show help info
  -s, --https                   启用HTTPS请求代理
  -m, --middle-man-port <port>  HTTPS代理服务端口号,默认: 10010
  -o, --open [browser]          打开浏览器窗口,并且配置好代理(hiproxy代理)
  --pac-proxy                   使用Proxy auto-configuration (PAC)代理
  -p, --port <port>             HTTP代理服务端口号,默认:5525
  --sys-proxy <path>            系统代理,没有走hiproxy代理的请求会走这个代理,格式: <ip>[:port],只在使用PAC代理时生效

License

该插件采用MIT协议,点击LICENSE查看详情。