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

@jlius/m-cli

v1.0.1

Published

taro微信小程序自动发版工具。

Readme

taro 微信小程序自动发版工具,包含以下功能:

  1. 支持编译、发布体验版、发布预览版
  2. 支持发布后自动推送小程序二维码功能
  3. 支持动态打包到不同的 appid。
  4. 支持定制化内容打包等。

使用详解

    program
    .version(pack.version, "-v,--version")

    .description("taro微信小程序动态编译发布")

    /**
    * 项目名称:如HCB(红池坝),BDH(北戴河),LT(联通);默认standard(标准版);
    * 该参数用于动态设置taro小程序appid,动态打包不同appid所对应的个性化定制内容等;
    * 对应于项目中的config/appConfig.json文件。
    */
    .option("-n,--name", "待发布的小程序的名称")

    /**
    * 操作类型:publish(发布体验版并发送二维码消息)、preview(预览版并发送二维码消息)、build(仅编译)、dev(编译并监听变化)。
    */
    .option("-t,--type", "类型:publish|preview|build|dev", "preview")

    /**
    * 服务器类型:标识所连接的服务器地址等
    */
    .option("-s,--server", "服务器类型:dev|test|pre|prod", "test")

    /**
    * 当发布体验版(type为publish)时,需要定义版本号。
    * 如果不传入该参数则按规则自增版本号。
    * 如果发布成功则更新config/appConfig.json中的版本号信息
    */
    .option("-pv, --publishVersion", "发布体验版时版本号如:v1.1.1")

    /**
    * 版本号自增规则:major(大版本:大改动或出现不兼容时)、minor(次版本:功能性改动或新增)、revise(修复版本:内容修复);
    * 在原始版本上自增1。
    * 如果发布成功则更新config/appConfig.json中的版本号信息
    */
    .option("-r, --versionRule", "发布体验版时版本号自增规则:major|minor|revise")

使用方式

  1. m-cli -t publish -s test //发布测试环境体验版
  2. m-cli -n BDH -t preview -s test //发布北戴河(定制版本)测试环境预览版