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

@kwooshung/standard-version-helper

v1.8.1

Published

'standard-version' is a utility tool that offers a straightforward menu selection in the console.

Downloads

31

Readme

Standard Version Helper

It is based on standard versionThe help tool can provide simple menu selection in the console.

GitHub License GitHub Release Date - Published_At GitHub last commit GitHub code size in bytes GitHub top language GitHub pull requests GitHub issues Github Stars NPM Version Npm.js Downloads/Week Github CI/CD codecov Maintainability Gitee Repo

Discontinued, Recommend Using Cvlar

This tool is no longer updated. It is recommended to use the more powerful Cvlar instead.

Why?

  • I am tired of command line version upgrades and have to remember commands, parameters, and various rules every time. These are all things I don't want to remember. I just want to focus on business development, so I developed this tool.
  • Since there is a 'standard version', why not have another help tool?

Features

  • No need to remember commands
  • No need to remember parameters
  • No need to remember Semantic version number
  • No need to remember version number rules
  • No need to remember version number cancellation rules
  • No need to remember version number enforcement rules
  • No need to remember Version number minor rules
  • No need to remember version number patch rules
  • You are not afraid of making mistakes in version number, there are verification prompts
  • Increase work efficiency
  • Newbie friendly

Menu Preivew

Assume that your current project version is: v2.0.0;

  • The following menu demonstrates all processes, that is, what each branch process should display;
  • In actual use, it will not be expanded as shown below, but whatever you select will be displayed, just like you use other command line menus.
- main menu
  ├── Upgraded version
  │ ├── Which version do you plan to upgrade?
  │ ├── Major version: v2.0.0 > 3.0.0
  │ │ └── Push to the warehouse?
  │ │ │ ├── Y (default): npx standard-version --release-as major && --follow-tags origin master
  │ │ │ └── N:npx standard-version --release-as major
  │ ├── Minor version: v2.0.0 > 2.1.0
  │ │ └── Push to the warehouse?
  │ │ │ ├── Y (default): npx standard-version --release-as minor && git push --follow-tags origin master
  │ │ │ └── N:npx standard-version --release-as minor
  │ ├── Patch version: v2.0.0 > 2.0.1
  │ │ └── Push to the warehouse?
  │ │ │ ├── Y (default): npx standard-version --release-as patch && git push --follow-tags origin master
  │ │ │ └── N:npx standard-version --release-as patch
  │ └── Return
  ├──Specified version
  │ ├── Please enter the version number: 4.0.0
  │ │ └── Your current version number is: v2.0.0, confirm to enter the specified version number: v4.0.0 Yes
  │ │ └── Push to the warehouse?
  │ │ │ ├── Y (default): npx standard-version --release-as 4.0.0 && git push --follow-tags origin master
  │ │ │ └── N:npx standard-version --release-as 4.0.0
  ├── Cancel version
  │ ├── Which version do you want to undo?
  │ ├── Current version
  │ │ ├── Keep changes to the file and only undo the version number?
  │ │ │ ├── Yes
  │ │ │ │ └── Do you want to update the version number in the package.json file: v2.0.0 to the revoked version number v1.9.9?
  │ │ │ │ ├── Yes
  │ │ │ │ │ └── The current version is updated to: 1.9.9
  │ │ │ │ └── No
  │ │ │ └── No
  │ ├── Cancel the specified version
  │ │ ├── Enter the version number to be revoked: 1.5.0
  │ │ │ ├── Keep changes to the file and only undo the version number?
  │ │ │ │ ├── Yes
  │ │ │ │ │ └── Do you want to update the version number in the package.json file: v2.0.0 to the revoked version number v1.4.9?
  │ │ │ │ │ ├── Yes
  │ │ │ │ │ │ └── The current version is updated to: 1.4.9
  │ │ │ │ │ └── No
  │ │ │ │ └── No
  │ └── Return
  └── Exit

Install

npm

npm install standard-version @kwooshung/standard-version-helper --save-dev

yarn

yarn add standard-version @kwooshung/standard-version-helper -D

pnpm

pnpm add standard-version @kwooshung/standard-version-helper -D

recommend

Add the scripts script in package.json as follows:

{
  "scripts": {
    "release": "standard-version-helper"
  }
}

Two parameters are supported: --locale and --cmd:

--locale

  • Default is Simplified Chinese
  • Change the language, such as English en_US or --locale en_US, as shown in the code below
  • For other languages, Google Translate is used. Its accuracy cannot be guaranteed. If there are any inaccuracies in the translation, please submit issue & PR
  • See the table below for the list of languages
{
  "scripts": {
    "release": "standard-version-helper --locale en_US"
  }
}

--cmd

You can add some custom commands, such as ls -l, this command

{
  "scripts": {
    "release": "standard-version-helper --cmd ls -l"
  }
}

Comprehensive usage

{
  "scripts": {
    "release": "standard-version-helper --locale en_US --cmd ls -l"
  }
}

Version number support rules are as follows:

Verified version number regular format: /^(\d+)\.(\d+)\.(\d+)(?:-([\w-]+(?:\.[\w-]+)*))?(?:\+([\w-]+(?:\.[\w-]+)*))?$/

  • 0.0.1
  • 0.1.2
  • 1.0.0-alpha
  • 1.0.0-beta
  • 1.0.0-alpha.1
  • 1.0.0-beta.2
  • 1.0.0-rc.1
  • 1.0.0+001
  • 1.0.0+20130313144700
  • 1.0.0-alpha+001
  • 1.0.0-alpha.1+001
  • 2.1.0-rc.2+build.5

Supported languages

| 语言 | 代码 | | ------------------------------- | ------ | | Arabic | ar_EG | | Azerbaijani | az_AZ | | Bulgarian | bg_BG | | Bengali (Bangladesh) | bn_BD | | Belarusian | by_BY | | Catalan | ca_ES | | Czech | cs_CZ | | Danish | da_DK | | German | de_DE | | Greek | el_GR | | English | en_GB | | English (US) | en_US | | Spanish | es_ES | | Basque | eu_ES | | Estonian | et_EE | | Persian | fa_IR | | Finnish | fi_FI | | French (Belgium) | fr_BE | | French (Canada) | fr_CA | | French (France) | fr_FR | | Irish | ga_IE | | Galician (Spain) | gl_ES | | Hebrew | he_IL | | Hindi | hi_IN | | Croatian | hr_HR | | Hungarian | hu_HU | | Armenian | hy_AM | | Indonesian | id_ID | | Italian | it_IT | | Icelandic | is_IS | | Japanese | ja_JP | | Georgian | ka_GE | | Khmer | km_KH | | Northern Kurdish | kmr_IQ | | Kannada | kn_IN | | Kazakh | kk_KZ | | Korean/Korean | ko_KR | | Lithuanian | lt_LT | | Latvian | lv_LV | | Macedonian | mk_MK | | Malayalam | ml_IN | | Mongolian | mn_MN | | Malay (Malaysia) | ms_MY | | Burmese | my_MM | | Norwegian | nb_NO | | Nepali | ne_NP | | Dutch (Belgium) | nl_BE | | Dutch | nl_NL | | Polish | pl_PL | | Portuguese (Brazil) | pt_BR | | Portuguese | pt_PT | | Romanian | ro_RO | | Russian | ru_RU | | Sinhala | si_LK | | Slovak | sk_SK | | Serbian | sr_RS | | Slovenian | sl_SI | | Swedish | sv_SE | | Tamil | ta_IN | | Thai | th_TH | | Turkish | tr_TR | | Turkmen | tk_TK | | Urdu (Pakistan) | ur_PK | | Ukrainian | uk_UA | | Vietnamese | vi_VN | | Simplified Chinese | zh_CN | | Traditional Chinese (Hong Kong) | zh_HK | | Traditional Chinese (Macau) | zh_MO | | Traditional Chinese (Taiwan) | zh_TW |

Open source projects used

Thanks to the project authors for their selfless contributions to the open source community, making our work easier! ! !

LICENSE

MIT