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 🙏

© 2026 – Pkg Stats / Ryan Hefner

whistle.fplug

v1.1.1

Published

whistle plug

Readme

whistle.FPlug

whistle插件,提供vConsole注入、禁止缓存、console日志、JS注入等功能(Fiddler版FPlug

版本

v1.1.1

安装

安装whistle

请参考:https://github.com/avwo/whistle#whistle

安装FPlug

$ npm install -g whistle.fplug

特性

  • vConsole注入
  • 禁止缓存
  • console日志
  • JS注入
  • 文件映射
  • websocket映射

基础配置说明

插件启用/关闭

特性功能说明

vConsole注入

开启后,会往Content-Type包含text/html,并且,包含<html>或者<html 的请求中注入vConsole

禁止缓存

开启后会主动修改Request和Response头的相关字段,来禁止缓存

Request头:

  • 删除Expires
  • 删除If-None-Match
  • 删除If-Modified-Since
  • 强制修改Pragma为no-cache
  • 强制修改Cache-Control为no-cache

Response头:

  • 删除Expires
  • 强制修改Pragma为no-cache
  • 强制修改Cache-Control为no-cache

console日志

1、开启后会主动往网页中注入JS脚本,修改console方法,捕获日志后发起POST请求
2、日志输出的顺序请以序号为准
3、开启后需要重新刷新已经打开的页面才能捕获日志
4、仅会往Content-Type包含text/html,并且,包含<html>或者<html 的请求中注入脚本

JS注入

1、开启后,在输入框中键入JavaScript脚本,然后点击发送,会主动向代理中的网页注入对应的脚本
2、开启后需要重新刷新已经打开的页面才能捕获日志
3、仅对Content-Type包含text/html,并且,包含<html>或者<html 的请求有效
4、会每隔2S请求一次 www.example.com,请忽略!!!

文件映射

1、如果URL中携带callback或者cb,会自动替换文件里面第一个callback字符串
2、如果URL中携带callback或者cb,并且本地文件内容为JSON数据,则会自动包裹一层callback

WebSocket映射

1、需要指定映射的类型

  • Server: 代表需要替换客户端发送到服务端的数据
  • Client: 代表需要替换服务端发送到客户端的数据

2、映射规则对应匹配的内容为实际传输的文本,规则支持正则表达式