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

@cley_faye/version-manager

v1.0.1

Published

Manage version commits for NPM projects

Readme

@cley_faye/version-manager

Manage updating version number in an NPM project.

Installation

npm install -g @cley_faye/version-manager`

Usage

verman-bump <bump type>

Additionally, you can call the command with --help to get more informations.

Workflow

Versions

The version handling is expected to go this way:

  • It follows semantic versioning:
    • a patch version only fix things and must remain 100% compatible with previous version as far as API/ABI is concerned.
    • a minor version can add features as long as the API/ABI remain compatible with previous versions (either by not changing them or by setting identical default versions as before).
    • a major version will break compatibility; someone updating to a newer major version is expected to potentially have some changes to do in their codebase.
  • Additionally, dev versions are created in-between.

Basically, every time a version is "settled", the package is immediately put in a new dev.0 version. Incremental dev version are tagged on odd numbers; dev.0 is not usually tagged, then dev.1 would be, leading into dev.2 not being tagged, etc.

Changelog

A changelog file can be created, and updated, on each actual releases. Add --changelog to the verman-bump command to create it. If a changelog file is detected, it will be automatically updated on subsequent calls.

Operations

When making an actual version (not a dev one), the following steps are followed:

  • Ensure that the git repository is clean
  • Calls script verman_precommit.sh if present
  • Create the version commit message
  • Update/create the changelog
  • Ask for user confirmation
  • Update package.json/lockfile
  • Commit
  • Tag
  • Commit dev-version
  • Calls script verman_prepush.sh if present
  • Push
  • Calls script verman_postpush.sh if present

Note that this does not use scripts from package.json like preversion, version, and postversion. The actual sequence of operation is slightly different here, and it would be more annoying than useful to plug into these.

Commit message

When making a new versions, all short commit titles since the previous version are provided as the baseline for the commit message. In addition, a set of lines will be added (like Breaking:, Added:, etc.). In the commit message it is advised to keep the structure of headings ending with a :, and lines in each section to be prefixed with - (as suggested). This will help the creation of the changelog file. The commit message format retain the expected git format, as in, the first line is the short description, following by a blank line, then the commit message.

Hooks

The hooks are called during operations:

verman_precommit.sh

This is called before the actual commit. It will have the following environment variables set:

  • bumpType: type of version bump
  • previousVersion: the version before the change
  • nextVersion: the version after the change
  • message: the version commit message

This script can explicitly add file to the version commit, but this should be limited to actual version changes, nothing else.

verman_prepush.sh

Called before actually pushing on the git remote. It will have the following environment variables set:

  • bumpType: type of version bump
  • previousVersion: the version before the change
  • nextVersion: the version after the change

verman_postpush.sh

Called after pushing on the git remote. It will have the following environment variables set:

  • bumpType: type of version bump
  • previousVersion: the version before the change
  • nextVersion: the version after the change

verman_postcancel.sh

Called when the user cancel the version update. At this point, all changes made by the script are reverted, but changes made by hooks are not automatically cleaned.