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

whistle.pinned-ip

v0.1.1

Published

自动同步本地IP到dnspod.cn的指定域名

Downloads

8

Readme

whistle.pinned-ip

该whistle插件用于将指定域名绑定本机IP,本机IP发生改变时会自动更新DNS服务器的IP设置,主要解决手机端连自己PC抓包调试工具时,PC的IP跳变需要重新配置手机代理问题。

安装

  1. 该应用是whistle插件,需要先安装whistle:https://github.com/avwo/whistle
  2. 安装插件:
    npm i -g whistle.pinned-ip

    推荐使用淘宝镜像: npm i -g whistle.pinned-ip --registry=https://registry.npm.taobao.org

使用

  1. 需要有一个用DNSPod做DNS服务的域名(如果已存在,可以忽略该步骤)
  2. 获取DNSPod的Token:https://support.dnspod.cn/Kb/showarticle/tsid/227 获取DNSPod的Token

假设按上述方式获取如下数据:

  1. 域名:local.xxx.com, 其中:xxx.com 为在DNSPod上配的域名,子域名不一定为 local 名称可以自定义
  2. ID:12345,在DNSPod生成的ID
  3. Token:8353ad93214a5af5ad94d00411630667,在DNSPod生成的Token

打开插件的管理页面把生成好的数据填上并点击提交: pinned-ip插件管理界面

这样插件将对应域名的DNS指向本机IP,且本机有IP变更会自动同步到DNSPod,最后用域名代替IP作为代理的域名配置手机代理:

配置手机代理

注意:由于DNS缓存原因,可能需要等待几分钟新IP才能生效。