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

vite-plugin-open-wechat-devtools

v1.0.1

Published

Vite plugin to automatically open WeChat DevTools after dev/build

Readme

vite-plugin-open-wechat-devtools

Vite 插件,在 devbuild 完成后自动打开微信开发者工具。专为 uni-app 微信小程序开发设计。

安装

npm install vite-plugin-open-wechat-devtools -D

使用

// vite.config.ts
import { defineConfig } from 'vite'
import openWechatDevtools from 'vite-plugin-open-wechat-devtools'

export default defineConfig({
  plugins: [
    openWechatDevtools({
      // 可选配置项
      projectName: '我的小程序',
    }),
  ],
})

配置项

| 参数 | 类型 | 默认值 | 说明 | |------|------|--------|------| | devToolsPath | string | 自动检测 | 微信开发者工具 CLI 路径 | | projectPath | string | dist/dev/mp-weixin (dev) / dist/build/mp-weixin (build) | 小程序项目输出目录(相对于项目根目录) | | projectName | string | - | 项目名称,写入 project.config.jsonprojectname 字段 |

插件会通过 process.argv 自动检测当前运行的是 dev 还是 build 命令,并据此选择正确的输出目录(dist/dev/mp-weixindist/build/mp-weixin)。

默认 CLI 路径

插件会自动检测以下默认安装路径:

  • macOS: /Applications/wechatwebdevtools.app/Contents/MacOS/cli
  • Windows: C:\Program Files (x86)\Tencent\微信web开发者工具\cli.bat

如果安装在非默认路径,请通过 devToolsPath 手动指定。

前提条件

  1. 已安装 微信开发者工具
  2. 在开发者工具中开启 设置 → 安全设置 → 服务端口

License

MIT