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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@142vip/release-version

v0.0.1-alpha.15

Published

通用型版本迭代Cli工具,支持版本迭代更新,Git提交信息、打标记并推送到远程

Readme

@142vip/release-version

NPM version

通用型版本迭代工具,支持版本迭代更新,Git提交信息、打标记并推送到远程

安装

# npm
npm install @142vip/release-version -D
# pnpm
pnpm i @142vip/release-version -D

查看版本

npx bumpx -v

命令

# 查看使用
npx bumpx -h

Usage: @142vip/release-version [...files]

通用型版本迭代Cli工具,支持版本迭代更新,Git提交信息、打标记并推送到远程

Options:
  -v --version                 VipCommander Version By @142vip
  --preid <preid>              预发布标记 (default: "alpha")
  --all                        Include all files (default: false)
  -c, --commit                 Commit message,also can skip commit (default: true)
  -t, --tag                    Tag name,also can skip tag (default: false)
  -p, --push                   Push to remote (default: true)
  -y, --confirm                Skip confirmation (default: true)
  -r, --recursive              Bump package.json files recursively (default: false)
  --skip-git-verify            Skip git verification
  --ignore-scripts             Ignore scripts (default: false)
  --changelog                  generate CHANGELOG.md (default: false)
  --current-version <version>  Current version
  -x, --execute <command>      Commands to execute after version bumps
  --scopeName <scopeName>      Package name in monorepo
  --dry-run                    试运行 (default: false)
  --vip                        @142vip组织专用功能 (default: false)
  --logger                     开启日志追踪模式 (default: false)
  -h, --help                   display help for command

Commands:
  help [command]               display help for command

API

  • versionBump(options: VersionBumpOptions)
  • versionBumpDryRun(options: VersionBumpOptions)
  • versionBumpInfo(options: VersionBumpOptions)

类型

export interface VersionBumpOptions {
  /**
   * 预发行类型(例如 “alpha”、“beta”、“next”),默认:“alpha”
   */
  preid?: string

  /**
   * 是否生成CHANGELOG.md文档
   */
  changelog?: boolean

  /**
   * 当前版本号
   */
  currentVersion?: string

  /**
   * 指示是否创建 git 提交。可以设置为自定义提交消息字符串,默认是“true”
   * - 消息字符串中的任何 '%s' 占位符都将被替换为新版本号。
   * - 如果消息字符串不包含任何 '%s' 占位符,则新版本号将附加到消息中。
   */
  commit?: boolean | string

  /**
   * 指示是否标记 git 提交。可以设置为自定义标签字符串,默认是“true”
   * - 标签字符串可以是自定义字符串,例如 'v%s'
   * - 标签字符串中的任何 '%s' 占位符都将被替换为新版本号
   * - 如果标签字符串不包含任何 '%s' 占位符,则新版本号将附加到标签中
   */
  tag?: boolean | string

  /**
   * 是否推送 git commit 和 tag。默认:true
   */
  push?: boolean

  /**
   * Indicates whether the git commit should include ALL files (`git commit --all`)
   * rather than just the files that were modified by `versionBump()`.
   *
   * Defaults to `false`.
   */
  all?: boolean

  /**
   * 支持用户确认提示,默认:true
   */
  confirm?: boolean

  /**
   * 指示是否绕过 git 提交钩子 ('git commit --no-verify')。默认:false
   */
  skipGitVerify?: boolean

  /**
   * 工作目录,用作查找所有文件的基础。默认:process.cwd()
   */
  cwd?: string

  /**
   * 指示是否忽略version版本脚本。默认:false
   *
   */
  ignoreScripts?: boolean

  /**
   * 在 bumping 之后和 commit 之前执行其他命令
   */
  execute?: string

  /**
   * monorepo模式下,指定模块名包名
   */
  scopeName?: string

  /**
   * 递归地为 monorepo 加载文件。仅在发布monorepo主模块时有效,默认false
   */
  recursive?: boolean
}

/**
 * Information about the work that was performed by the `versionBump()` function.
 */
export interface VersionBumpResults {
  /**
   * T使用的发布类型,如果使用了自定义版本号,则为 'undefined' .
   */
  release?: VipReleaseType

  /**
   * package.json文件中对应的上一个版本号
   */
  currentVersion: string

  /**
   * 发布的新的版本号
   */
  newVersion: string

  /**
   * 用于 git 提交的提交消息,如果未创建 git 提交,则为“false”。
   * - 注意:这永远不会是空字符串。 它将始终至少包含新版本号。
   */
  commit: string | false

  /**
   * 用于 git 标签的标签名称,如果未创建 git 标签,则为 'false'。
   * - 注意:这永远不会是空字符串。 它将始终至少包含新版本号。
   */
  tag: string | false
}

证书

MIT

Copyright (c) 2019-present, @142vip 储凡

仅供学习参考,商业使用请保留作者版权信息,作者不保证也不承担任何软件的使用风险。