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

autoversioner

v0.2.5

Published

A simple cli tool to help you better track versions in your project

Readme

autoVersioner

autoVersioner is a streamlined command-line tool for managing version numbers across projects and subprojects. It simplifies incrementing version numbers in package.json files and environment files, with automatic Git integration for version tracking.

🚀 Recent Optimizations

This package has been optimized for better performance, security, and maintainability:

  • 🔒 Security Fixes: Removed sensitive data logging from environment files
  • ⚡ Performance Improvements: Optimized error handling and reduced bundle size
  • 🧹 Code Cleanup: Removed unnecessary files and improved code structure
  • 📦 Package Optimization: Excluded unnecessary files from npm package
  • 🛡️ Better Error Handling: Custom error classes for improved debugging
  • 🎯 TypeScript Improvements: Stricter type checking and better configurations

Features

  • Version Control: Easily increment version numbers (major, minor, patch) across your project
  • Multi-Project Support: Perfect for monorepos with configurable subprojects
  • Flexible File Updates: Update versions in JSON files and environment (.env) files
  • Git Integration: Automatically commit and push changes with descriptive version messages
  • Interactive CLI: User-friendly prompts for version type, project selection, and commit messages

Installation

# Install globally
npm install -g autoversioner

# Or as a dev dependency
npm install autoversioner --save-dev

Configuration

Create a autoVersioner.conf.json file in your project root:

About the $schema Field

The $schema field at the top of the configuration file is optional but highly recommended. It provides a link to the JSON schema that describes the structure and allowed values for the configuration. When included, many editors (like VS Code) will use this schema to offer features such as:

  • Auto-completion: Suggests valid fields and values as you type.
  • Validation: Warns you about typos or invalid configuration options.
  • Documentation: Shows inline descriptions for each field.

This helps prevent configuration errors and makes editing the config file easier and safer.

Basic Configuration

{
  "$schema": "https://raw.githubusercontent.com/AGL-Studio/autoVersioner/refs/heads/master/src/utils/config.schema.json",
  "changeEnv": false,
  "skipGitCheck": false
}

Advanced Configuration

{
  "$schema": "https://raw.githubusercontent.com/AGL-Studio/autoVersioner/refs/heads/master/src/utils/config.schema.json",
  "files": [
    {
      "path": "package.json",
      "type": "json",
      "field": "version"
    },
    {
      "path": ".env",
      "type": "env",
      "field": "VERSION"
    }
  ],
  "subprojects": [
    {
      "dir": "client",
      "files": [
        {
          "path": "package.json",
          "type": "json",
          "field": "version"
        },
        {
          "path": ".env",
          "type": "env",
          "field": "NEXT_PUBLIC_VERSION"
        }
      ]
    },
    {
      "dir": "server",
      "files": [
        {
          "path": "package.json",
          "type": "json",
          "field": "version"
        },
        {
          "path": ".env",
          "type": "env",
          "field": "API_VERSION"
        }
      ]
    }
  ],
  "skipGitCheck": false
}

Configuration Options

| Option | Type | Description | |--------|------|-------------| | files | Array | Files to update in the root directory | | subprojects | Array | List of subprojects with their own files | | changeEnv | Boolean | Whether to update .env files | | skipGitCheck | Boolean | Skip Git commit and push operations |

Usage

autoVersioner [options]

Options

  • --config, -c: Specify custom configuration file path
  • --project, -p: Specify which project(s) to update (use 'main' for root project)

Examples

# Run with interactive prompts
autoVersioner

# Use custom configuration file
autoVersioner --config ./custom-config.json

# Update specific projects
autoVersioner --project client
autoVersioner -p client -p server

Interactive Workflow

When you run the tool, you'll be prompted to:

  1. Select version change type:

    ? What type of change? (Use arrow keys)
    ❯ major
      minor
      patch
  2. Choose projects to update (if you have subprojects):

    ? Which projects to update? (Press <space> to select)
    ❯ ◉ main
      ◉ client
      ◉ server
  3. Enter commit message:

    ? Enter the commit message: Updated version for new feature release
  4. Update .env file (if not specified in config):

    ? Do you want to update the .env file? (Y/n)

The tool will then:

  1. Update versions in all specified files
  2. Commit and push changes with your message and version details
  3. Display progress and results in the console

How It Works

autoVersioner follows these steps:

  1. Reads configuration from your config file
  2. Determines which projects to update based on your selection
  3. Calculates new version numbers based on semantic versioning rules
  4. Updates all specified files with the new versions
  5. Commits and pushes changes to Git with descriptive commit messages

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

License

This project is licensed under the ISC License.